From 5d35bfd88de242cc6f96c001ffc6948328897d28 Mon Sep 17 00:00:00 2001 From: Mikhail Glukhikh Date: Thu, 11 May 2023 11:23:38 +0200 Subject: [PATCH] Add IR text test for KT-54887 --- .../FirLightTreeJvmIrTextTestGenerated.java | 6 ++ .../ir/FirPsiJvmIrTextTestGenerated.java | 6 ++ .../firProblems/valueClassEquals.fir.ir.txt | 77 ++++++++++++++++++ .../firProblems/valueClassEquals.fir.kt.txt | 37 +++++++++ .../firProblems/valueClassEquals.ir.txt | 78 +++++++++++++++++++ .../ir/irText/firProblems/valueClassEquals.kt | 11 +++ .../firProblems/valueClassEquals.kt.txt | 36 +++++++++ .../ir/ClassicJvmIrTextTestGenerated.java | 6 ++ .../klib/KlibIrTextTestCaseGenerated.java | 5 ++ .../FirLightTreeJsIrTextTestGenerated.java | 6 ++ .../test/fir/FirPsiJsIrTextTestGenerated.java | 6 ++ .../test/ir/ClassicJsIrTextTestGenerated.java | 6 ++ 12 files changed, 280 insertions(+) create mode 100644 compiler/testData/ir/irText/firProblems/valueClassEquals.fir.ir.txt create mode 100644 compiler/testData/ir/irText/firProblems/valueClassEquals.fir.kt.txt create mode 100644 compiler/testData/ir/irText/firProblems/valueClassEquals.ir.txt create mode 100644 compiler/testData/ir/irText/firProblems/valueClassEquals.kt create mode 100644 compiler/testData/ir/irText/firProblems/valueClassEquals.kt.txt diff --git a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/ir/FirLightTreeJvmIrTextTestGenerated.java b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/ir/FirLightTreeJvmIrTextTestGenerated.java index 7ef1d1fdabf..ae534f405af 100644 --- a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/ir/FirLightTreeJvmIrTextTestGenerated.java +++ b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/ir/FirLightTreeJvmIrTextTestGenerated.java @@ -2894,6 +2894,12 @@ public class FirLightTreeJvmIrTextTestGenerated extends AbstractFirLightTreeJvmI runTest("compiler/testData/ir/irText/firProblems/V8ArrayToList.kt"); } + @Test + @TestMetadata("valueClassEquals.kt") + public void testValueClassEquals() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/valueClassEquals.kt"); + } + @Test @TestMetadata("VarInInit.kt") public void testVarInInit() throws Exception { diff --git a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/ir/FirPsiJvmIrTextTestGenerated.java b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/ir/FirPsiJvmIrTextTestGenerated.java index de0f7d5d3fe..55aac8d9a32 100644 --- a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/ir/FirPsiJvmIrTextTestGenerated.java +++ b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/ir/FirPsiJvmIrTextTestGenerated.java @@ -2894,6 +2894,12 @@ public class FirPsiJvmIrTextTestGenerated extends AbstractFirPsiJvmIrTextTest { runTest("compiler/testData/ir/irText/firProblems/V8ArrayToList.kt"); } + @Test + @TestMetadata("valueClassEquals.kt") + public void testValueClassEquals() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/valueClassEquals.kt"); + } + @Test @TestMetadata("VarInInit.kt") public void testVarInInit() throws Exception { diff --git a/compiler/testData/ir/irText/firProblems/valueClassEquals.fir.ir.txt b/compiler/testData/ir/irText/firProblems/valueClassEquals.fir.ir.txt new file mode 100644 index 00000000000..bcfeb8a1ca2 --- /dev/null +++ b/compiler/testData/ir/irText/firProblems/valueClassEquals.fir.ir.txt @@ -0,0 +1,77 @@ +FILE fqName: fileName:/valueClassEquals.kt + CLASS CLASS name:Z modality:FINAL visibility:public [value] superTypes:[kotlin.Any] + annotations: + JvmInline + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Z + 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' + 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] + EXPRESSION_BODY + GET_VAR 's: kotlin.String declared in .Z.' type=kotlin.String origin=INITIALIZE_PROPERTY_FROM_PARAMETER + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:.Z) returnType:kotlin.String + correspondingProperty: PROPERTY name:s visibility:public modality:FINAL [val] + $this: VALUE_PARAMETER name: type:.Z + BLOCK_BODY + RETURN type=kotlin.Nothing from='public final fun (): kotlin.String declared in .Z' + 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.' 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 + overridden: + public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any + $this: VALUE_PARAMETER GENERATED_SINGLE_FIELD_VALUE_CLASS_MEMBER name: type:.Z + VALUE_PARAMETER GENERATED_SINGLE_FIELD_VALUE_CLASS_MEMBER name:other index:0 type:kotlin.Any? + BLOCK_BODY + WHEN type=kotlin.Unit origin=null + 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 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 + $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 declared in .Z' + CONST Boolean type=kotlin.Boolean value=false + 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: + public open fun hashCode (): kotlin.Int declared in kotlin.Any + $this: VALUE_PARAMETER GENERATED_SINGLE_FIELD_VALUE_CLASS_MEMBER 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 + $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 + overridden: + public open fun toString (): kotlin.String declared in kotlin.Any + $this: VALUE_PARAMETER GENERATED_SINGLE_FIELD_VALUE_CLASS_MEMBER name: type:.Z + BLOCK_BODY + RETURN type=kotlin.Nothing from='public open fun toString (): kotlin.String declared in .Z' + STRING_CONCATENATION type=kotlin.String + CONST String type=kotlin.String value="Z(s=" + 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.toString' type=.Z origin=null + CONST String type=kotlin.String value=")" + 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= + 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 + RETURN type=kotlin.Nothing from='public final fun (): kotlin.reflect.KFunction2<.Z, kotlin.Any?, kotlin.Boolean> declared in ' + GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:equals type:kotlin.reflect.KFunction2<.Z, kotlin.Any?, kotlin.Boolean> visibility:private [final,static]' type=kotlin.reflect.KFunction2<.Z, kotlin.Any?, kotlin.Boolean> origin=null diff --git a/compiler/testData/ir/irText/firProblems/valueClassEquals.fir.kt.txt b/compiler/testData/ir/irText/firProblems/valueClassEquals.fir.kt.txt new file mode 100644 index 00000000000..1f91b469a53 --- /dev/null +++ b/compiler/testData/ir/irText/firProblems/valueClassEquals.fir.kt.txt @@ -0,0 +1,37 @@ +@JvmInline +value class Z { + constructor(s: String) /* primary */ { + super/*Any*/() + /* () */ + + } + + val s: String + field = s + get + + override fun equals(other: Any?): Boolean { + when { + other !is Z -> return false + } + val tmp0_other_with_cast: Z = other as Z + when { + EQEQ(arg0 = .#s, arg1 = tmp0_other_with_cast.#s).not() -> return false + } + return true + } + + override fun hashCode(): Int { + return .#s.hashCode() + } + + override fun toString(): String { + return "Z(s=" + .#s + ")" + } + +} + +val equals: KFunction2 + field = Any::equals + get + diff --git a/compiler/testData/ir/irText/firProblems/valueClassEquals.ir.txt b/compiler/testData/ir/irText/firProblems/valueClassEquals.ir.txt new file mode 100644 index 00000000000..d40a8c5ac3e --- /dev/null +++ b/compiler/testData/ir/irText/firProblems/valueClassEquals.ir.txt @@ -0,0 +1,78 @@ +FILE fqName: fileName:/valueClassEquals.kt + CLASS CLASS name:Z modality:FINAL visibility:public [value] superTypes:[kotlin.Any] + annotations: + JvmInline + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Z + 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' + 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] + EXPRESSION_BODY + GET_VAR 's: kotlin.String declared in .Z.' type=kotlin.String origin=INITIALIZE_PROPERTY_FROM_PARAMETER + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:.Z) returnType:kotlin.String + correspondingProperty: PROPERTY name:s visibility:public modality:FINAL [val] + $this: VALUE_PARAMETER name: type:.Z + BLOCK_BODY + RETURN type=kotlin.Nothing from='public final fun (): kotlin.String declared in .Z' + 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.' type=.Z origin=null + FUN GENERATED_SINGLE_FIELD_VALUE_CLASS_MEMBER name:toString visibility:public modality:OPEN <> ($this:.Z) returnType:kotlin.String + overridden: + public open fun toString (): kotlin.String declared in kotlin.Any + $this: VALUE_PARAMETER name: type:.Z + BLOCK_BODY + RETURN type=kotlin.Nothing from='public open fun toString (): kotlin.String declared in .Z' + STRING_CONCATENATION type=kotlin.String + CONST String type=kotlin.String value="Z(" + CONST String type=kotlin.String value="s=" + 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.toString' type=.Z origin=null + CONST String type=kotlin.String value=")" + FUN GENERATED_SINGLE_FIELD_VALUE_CLASS_MEMBER name:hashCode visibility:public modality:OPEN <> ($this:.Z) returnType:kotlin.Int + overridden: + public open fun hashCode (): kotlin.Int declared in kotlin.Any + $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 + $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 + $this: VALUE_PARAMETER name: type:.Z + VALUE_PARAMETER name:other index:0 type:kotlin.Any? + BLOCK_BODY + WHEN type=kotlin.Unit origin=null + 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' + 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 + $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' + 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' + 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= + 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 + RETURN type=kotlin.Nothing from='public final fun (): kotlin.reflect.KFunction2<.Z, @[ParameterName(name = 'other')] kotlin.Any?, kotlin.Boolean> declared in ' + GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:equals type:kotlin.reflect.KFunction2<.Z, @[ParameterName(name = 'other')] kotlin.Any?, kotlin.Boolean> visibility:private [final,static]' type=kotlin.reflect.KFunction2<.Z, @[ParameterName(name = 'other')] kotlin.Any?, kotlin.Boolean> origin=null diff --git a/compiler/testData/ir/irText/firProblems/valueClassEquals.kt b/compiler/testData/ir/irText/firProblems/valueClassEquals.kt new file mode 100644 index 00000000000..ad55071d0b7 --- /dev/null +++ b/compiler/testData/ir/irText/firProblems/valueClassEquals.kt @@ -0,0 +1,11 @@ +// SKIP_KLIB_TEST +// IGNORE_BACKEND: JS_IR +// WITH_STDLIB +// LANGUAGE: +ValueClasses + +import kotlin.jvm.JvmInline + +@JvmInline +value class Z(val s: String) + +val equals = Z::equals diff --git a/compiler/testData/ir/irText/firProblems/valueClassEquals.kt.txt b/compiler/testData/ir/irText/firProblems/valueClassEquals.kt.txt new file mode 100644 index 00000000000..eccd5502402 --- /dev/null +++ b/compiler/testData/ir/irText/firProblems/valueClassEquals.kt.txt @@ -0,0 +1,36 @@ +@JvmInline +value class Z { + constructor(s: String) /* primary */ { + super/*Any*/() + /* () */ + + } + + val s: String + field = s + get + + override fun toString(): String { + return "Z(" + "s=" + .#s + ")" + } + + override fun hashCode(): Int { + return .#s.hashCode() + } + + override operator fun equals(other: Any?): Boolean { + when { + other !is Z -> return false + } + val tmp0_other_with_cast: Z = other as Z + when { + EQEQ(arg0 = .#s, arg1 = tmp0_other_with_cast.#s).not() -> return false + } + return true + } + +} + +val equals: KFunction2 + field = Z::equals + get diff --git a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/ir/ClassicJvmIrTextTestGenerated.java b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/ir/ClassicJvmIrTextTestGenerated.java index 0e21fe2e88d..a2b3d1ed606 100644 --- a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/ir/ClassicJvmIrTextTestGenerated.java +++ b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/ir/ClassicJvmIrTextTestGenerated.java @@ -2894,6 +2894,12 @@ public class ClassicJvmIrTextTestGenerated extends AbstractClassicJvmIrTextTest runTest("compiler/testData/ir/irText/firProblems/V8ArrayToList.kt"); } + @Test + @TestMetadata("valueClassEquals.kt") + public void testValueClassEquals() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/valueClassEquals.kt"); + } + @Test @TestMetadata("VarInInit.kt") public void testVarInInit() throws Exception { diff --git a/compiler/tests-gen/org/jetbrains/kotlin/klib/KlibIrTextTestCaseGenerated.java b/compiler/tests-gen/org/jetbrains/kotlin/klib/KlibIrTextTestCaseGenerated.java index fe294662a50..e6c83970785 100644 --- a/compiler/tests-gen/org/jetbrains/kotlin/klib/KlibIrTextTestCaseGenerated.java +++ b/compiler/tests-gen/org/jetbrains/kotlin/klib/KlibIrTextTestCaseGenerated.java @@ -2040,6 +2040,11 @@ public class KlibIrTextTestCaseGenerated extends AbstractKlibIrTextTestCase { runTest("compiler/testData/ir/irText/firProblems/typeVariableAfterBuildMap.kt"); } + @TestMetadata("valueClassEquals.kt") + public void testValueClassEquals() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/valueClassEquals.kt"); + } + @TestMetadata("VarInInit.kt") public void testVarInInit() throws Exception { runTest("compiler/testData/ir/irText/firProblems/VarInInit.kt"); diff --git a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/fir/FirLightTreeJsIrTextTestGenerated.java b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/fir/FirLightTreeJsIrTextTestGenerated.java index 97252f359fa..202f4962d6c 100644 --- a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/fir/FirLightTreeJsIrTextTestGenerated.java +++ b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/fir/FirLightTreeJsIrTextTestGenerated.java @@ -2342,6 +2342,12 @@ public class FirLightTreeJsIrTextTestGenerated extends AbstractFirLightTreeJsIrT runTest("compiler/testData/ir/irText/firProblems/typeVariableAfterBuildMap.kt"); } + @Test + @TestMetadata("valueClassEquals.kt") + public void testValueClassEquals() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/valueClassEquals.kt"); + } + @Test @TestMetadata("VarInInit.kt") public void testVarInInit() throws Exception { diff --git a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/fir/FirPsiJsIrTextTestGenerated.java b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/fir/FirPsiJsIrTextTestGenerated.java index e89b12f270d..436f93a4ce5 100644 --- a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/fir/FirPsiJsIrTextTestGenerated.java +++ b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/fir/FirPsiJsIrTextTestGenerated.java @@ -2342,6 +2342,12 @@ public class FirPsiJsIrTextTestGenerated extends AbstractFirPsiJsIrTextTest { runTest("compiler/testData/ir/irText/firProblems/typeVariableAfterBuildMap.kt"); } + @Test + @TestMetadata("valueClassEquals.kt") + public void testValueClassEquals() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/valueClassEquals.kt"); + } + @Test @TestMetadata("VarInInit.kt") public void testVarInInit() throws Exception { diff --git a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/ClassicJsIrTextTestGenerated.java b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/ClassicJsIrTextTestGenerated.java index 4bf5f51bda8..b25a3872e03 100644 --- a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/ClassicJsIrTextTestGenerated.java +++ b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/ClassicJsIrTextTestGenerated.java @@ -2342,6 +2342,12 @@ public class ClassicJsIrTextTestGenerated extends AbstractClassicJsIrTextTest { runTest("compiler/testData/ir/irText/firProblems/typeVariableAfterBuildMap.kt"); } + @Test + @TestMetadata("valueClassEquals.kt") + public void testValueClassEquals() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/valueClassEquals.kt"); + } + @Test @TestMetadata("VarInInit.kt") public void testVarInInit() throws Exception {