diff --git a/analysis/low-level-api-fir/tests/org/jetbrains/kotlin/analysis/low/level/api/fir/diagnostic/compiler/based/LLFirBlackBoxCodegenBasedTestGenerated.java b/analysis/low-level-api-fir/tests/org/jetbrains/kotlin/analysis/low/level/api/fir/diagnostic/compiler/based/LLFirBlackBoxCodegenBasedTestGenerated.java index 300363218c9..c32d3b9ceee 100644 --- a/analysis/low-level-api-fir/tests/org/jetbrains/kotlin/analysis/low/level/api/fir/diagnostic/compiler/based/LLFirBlackBoxCodegenBasedTestGenerated.java +++ b/analysis/low-level-api-fir/tests/org/jetbrains/kotlin/analysis/low/level/api/fir/diagnostic/compiler/based/LLFirBlackBoxCodegenBasedTestGenerated.java @@ -19732,6 +19732,12 @@ public class LLFirBlackBoxCodegenBasedTestGenerated extends AbstractLLFirBlackBo runTest("compiler/testData/codegen/box/fir/selectingLambdas.kt"); } + @Test + @TestMetadata("smartCastToInvisibleClassMember.kt") + public void testSmartCastToInvisibleClassMember() throws Exception { + runTest("compiler/testData/codegen/box/fir/smartCastToInvisibleClassMember.kt"); + } + @Test @TestMetadata("StackOverflowInAnnotationLoader.kt") public void testStackOverflowInAnnotationLoader() throws Exception { diff --git a/analysis/low-level-api-fir/tests/org/jetbrains/kotlin/analysis/low/level/api/fir/diagnostic/compiler/based/LLFirReversedBlackBoxCodegenBasedTestGenerated.java b/analysis/low-level-api-fir/tests/org/jetbrains/kotlin/analysis/low/level/api/fir/diagnostic/compiler/based/LLFirReversedBlackBoxCodegenBasedTestGenerated.java index d0480d14d0f..70e4d3cf441 100644 --- a/analysis/low-level-api-fir/tests/org/jetbrains/kotlin/analysis/low/level/api/fir/diagnostic/compiler/based/LLFirReversedBlackBoxCodegenBasedTestGenerated.java +++ b/analysis/low-level-api-fir/tests/org/jetbrains/kotlin/analysis/low/level/api/fir/diagnostic/compiler/based/LLFirReversedBlackBoxCodegenBasedTestGenerated.java @@ -19732,6 +19732,12 @@ public class LLFirReversedBlackBoxCodegenBasedTestGenerated extends AbstractLLFi runTest("compiler/testData/codegen/box/fir/selectingLambdas.kt"); } + @Test + @TestMetadata("smartCastToInvisibleClassMember.kt") + public void testSmartCastToInvisibleClassMember() throws Exception { + runTest("compiler/testData/codegen/box/fir/smartCastToInvisibleClassMember.kt"); + } + @Test @TestMetadata("StackOverflowInAnnotationLoader.kt") public void testStackOverflowInAnnotationLoader() throws Exception { diff --git a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirLightTreeBlackBoxCodegenTestGenerated.java b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirLightTreeBlackBoxCodegenTestGenerated.java index b2e1704c941..98b74e98e40 100644 --- a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirLightTreeBlackBoxCodegenTestGenerated.java +++ b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirLightTreeBlackBoxCodegenTestGenerated.java @@ -19397,6 +19397,12 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr runTest("compiler/testData/codegen/box/fir/selectingLambdas.kt"); } + @Test + @TestMetadata("smartCastToInvisibleClassMember.kt") + public void testSmartCastToInvisibleClassMember() throws Exception { + runTest("compiler/testData/codegen/box/fir/smartCastToInvisibleClassMember.kt"); + } + @Test @TestMetadata("StackOverflowInAnnotationLoader.kt") public void testStackOverflowInAnnotationLoader() throws Exception { diff --git a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated.java b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated.java index a6a9c69fc54..a0084be0660 100644 --- a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated.java +++ b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated.java @@ -19397,6 +19397,12 @@ public class FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated runTest("compiler/testData/codegen/box/fir/selectingLambdas.kt"); } + @Test + @TestMetadata("smartCastToInvisibleClassMember.kt") + public void testSmartCastToInvisibleClassMember() throws Exception { + runTest("compiler/testData/codegen/box/fir/smartCastToInvisibleClassMember.kt"); + } + @Test @TestMetadata("StackOverflowInAnnotationLoader.kt") public void testStackOverflowInAnnotationLoader() throws Exception { diff --git a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirPsiBlackBoxCodegenTestGenerated.java b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirPsiBlackBoxCodegenTestGenerated.java index c30bd9c3276..da0be36b37a 100644 --- a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirPsiBlackBoxCodegenTestGenerated.java +++ b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirPsiBlackBoxCodegenTestGenerated.java @@ -19397,6 +19397,12 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo runTest("compiler/testData/codegen/box/fir/selectingLambdas.kt"); } + @Test + @TestMetadata("smartCastToInvisibleClassMember.kt") + public void testSmartCastToInvisibleClassMember() throws Exception { + runTest("compiler/testData/codegen/box/fir/smartCastToInvisibleClassMember.kt"); + } + @Test @TestMetadata("StackOverflowInAnnotationLoader.kt") public void testStackOverflowInAnnotationLoader() throws Exception { diff --git a/compiler/testData/codegen/box/fir/smartCastToInvisibleClassMember.fir.ir.txt b/compiler/testData/codegen/box/fir/smartCastToInvisibleClassMember.fir.ir.txt new file mode 100644 index 00000000000..a4167babb0a --- /dev/null +++ b/compiler/testData/codegen/box/fir/smartCastToInvisibleClassMember.fir.ir.txt @@ -0,0 +1,61 @@ +Module: m1 +FILE fqName: fileName:/info.kt + CLASS CLASS name:Info modality:FINAL visibility:internal superTypes:[kotlin.Any] + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Info + CONSTRUCTOR visibility:public <> () returnType:.Info [primary] + BLOCK_BODY + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' + INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Info modality:FINAL visibility:internal superTypes:[kotlin.Any]' + PROPERTY name:status visibility:public modality:FINAL [val] + FIELD PROPERTY_BACKING_FIELD name:status type:kotlin.String visibility:private [final] + EXPRESSION_BODY + CONST String type=kotlin.String value="OK" + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:.Info) returnType:kotlin.String + correspondingProperty: PROPERTY name:status visibility:public modality:FINAL [val] + $this: VALUE_PARAMETER name: type:.Info + BLOCK_BODY + RETURN type=kotlin.Nothing from='public final fun (): kotlin.String declared in .Info' + GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:status type:kotlin.String visibility:private [final]' type=kotlin.String origin=null + receiver: GET_VAR ': .Info declared in .Info.' type=.Info origin=null + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] + overridden: + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any + $this: VALUE_PARAMETER name: type:kotlin.Any + VALUE_PARAMETER name:other index:0 type:kotlin.Any? + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.Int [fake_override] + overridden: + public open fun hashCode (): kotlin.Int declared in kotlin.Any + $this: VALUE_PARAMETER name: type:kotlin.Any + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String [fake_override] + overridden: + public open fun toString (): kotlin.String declared in kotlin.Any + $this: VALUE_PARAMETER name: type:kotlin.Any + PROPERTY name:info visibility:public modality:FINAL [val] + FIELD PROPERTY_BACKING_FIELD name:info type:kotlin.Any? visibility:private [final,static] + EXPRESSION_BODY + CONSTRUCTOR_CALL 'public constructor () declared in .Info' type=.Info origin=null + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:kotlin.Any? + correspondingProperty: PROPERTY name:info visibility:public modality:FINAL [val] + BLOCK_BODY + RETURN type=kotlin.Nothing from='public final fun (): kotlin.Any? declared in ' + GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:info type:kotlin.Any? visibility:private [final,static]' type=kotlin.Any? origin=null +Module: m2 +FILE fqName: fileName:/box.kt + FUN name:getStatus visibility:public modality:FINAL <> (param:kotlin.Any?) returnType:kotlin.String + VALUE_PARAMETER name:param index:0 type:kotlin.Any? + BLOCK_BODY + WHEN type=kotlin.Unit origin=IF + BRANCH + if: TYPE_OP type=kotlin.Boolean origin=INSTANCEOF typeOperand=.Info + GET_VAR 'param: kotlin.Any? declared in .getStatus' type=kotlin.Any? origin=null + then: BLOCK type=kotlin.Unit origin=null + RETURN type=kotlin.Nothing from='public final fun getStatus (param: kotlin.Any?): kotlin.String declared in ' + CALL 'public final fun (): kotlin.String declared in kotlin.Any' type=kotlin.String origin=GET_PROPERTY + $this: GET_VAR 'param: kotlin.Any? declared in .getStatus' type=kotlin.Any? origin=null + RETURN type=kotlin.Nothing from='public final fun getStatus (param: kotlin.Any?): kotlin.String declared in ' + CONST String type=kotlin.String value="NO STATUS" + 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 getStatus (param: kotlin.Any?): kotlin.String declared in ' type=kotlin.String origin=null + param: CALL 'public final fun (): kotlin.Any? declared in ' type=kotlin.Any? origin=GET_PROPERTY diff --git a/compiler/testData/codegen/box/fir/smartCastToInvisibleClassMember.ir.txt b/compiler/testData/codegen/box/fir/smartCastToInvisibleClassMember.ir.txt new file mode 100644 index 00000000000..0f47849fdab --- /dev/null +++ b/compiler/testData/codegen/box/fir/smartCastToInvisibleClassMember.ir.txt @@ -0,0 +1,62 @@ +Module: m1 +FILE fqName: fileName:/info.kt + CLASS CLASS name:Info modality:FINAL visibility:internal superTypes:[kotlin.Any] + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Info + CONSTRUCTOR visibility:public <> () returnType:.Info [primary] + BLOCK_BODY + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' + INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Info modality:FINAL visibility:internal superTypes:[kotlin.Any]' + PROPERTY name:status visibility:public modality:FINAL [val] + FIELD PROPERTY_BACKING_FIELD name:status type:kotlin.String visibility:private [final] + EXPRESSION_BODY + CONST String type=kotlin.String value="OK" + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:.Info) returnType:kotlin.String + correspondingProperty: PROPERTY name:status visibility:public modality:FINAL [val] + $this: VALUE_PARAMETER name: type:.Info + BLOCK_BODY + RETURN type=kotlin.Nothing from='public final fun (): kotlin.String declared in .Info' + GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:status type:kotlin.String visibility:private [final]' type=kotlin.String origin=null + receiver: GET_VAR ': .Info declared in .Info.' type=.Info origin=null + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] + overridden: + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any + $this: VALUE_PARAMETER name: type:kotlin.Any + VALUE_PARAMETER name:other index:0 type:kotlin.Any? + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.Int [fake_override] + overridden: + public open fun hashCode (): kotlin.Int declared in kotlin.Any + $this: VALUE_PARAMETER name: type:kotlin.Any + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String [fake_override] + overridden: + public open fun toString (): kotlin.String declared in kotlin.Any + $this: VALUE_PARAMETER name: type:kotlin.Any + PROPERTY name:info visibility:public modality:FINAL [val] + FIELD PROPERTY_BACKING_FIELD name:info type:kotlin.Any? visibility:private [final,static] + EXPRESSION_BODY + CONSTRUCTOR_CALL 'public constructor () declared in .Info' type=.Info origin=null + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:kotlin.Any? + correspondingProperty: PROPERTY name:info visibility:public modality:FINAL [val] + BLOCK_BODY + RETURN type=kotlin.Nothing from='public final fun (): kotlin.Any? declared in ' + GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:info type:kotlin.Any? visibility:private [final,static]' type=kotlin.Any? origin=null +Module: m2 +FILE fqName: fileName:/box.kt + FUN name:getStatus visibility:public modality:FINAL <> (param:kotlin.Any?) returnType:kotlin.String + VALUE_PARAMETER name:param index:0 type:kotlin.Any? + BLOCK_BODY + WHEN type=kotlin.Unit origin=IF + BRANCH + if: TYPE_OP type=kotlin.Boolean origin=INSTANCEOF typeOperand=.Info + GET_VAR 'param: kotlin.Any? declared in .getStatus' type=kotlin.Any? origin=null + then: BLOCK type=kotlin.Unit origin=null + RETURN type=kotlin.Nothing from='public final fun getStatus (param: kotlin.Any?): kotlin.String declared in ' + CALL 'public final fun (): kotlin.String declared in .Info' type=kotlin.String origin=GET_PROPERTY + $this: TYPE_OP type=.Info origin=IMPLICIT_CAST typeOperand=.Info + GET_VAR 'param: kotlin.Any? declared in .getStatus' type=kotlin.Any? origin=null + RETURN type=kotlin.Nothing from='public final fun getStatus (param: kotlin.Any?): kotlin.String declared in ' + CONST String type=kotlin.String value="NO STATUS" + 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 getStatus (param: kotlin.Any?): kotlin.String declared in ' type=kotlin.String origin=null + param: CALL 'public final fun (): kotlin.Any? declared in ' type=kotlin.Any? origin=GET_PROPERTY diff --git a/compiler/testData/codegen/box/fir/smartCastToInvisibleClassMember.kt b/compiler/testData/codegen/box/fir/smartCastToInvisibleClassMember.kt new file mode 100644 index 00000000000..7bb0a061e22 --- /dev/null +++ b/compiler/testData/codegen/box/fir/smartCastToInvisibleClassMember.kt @@ -0,0 +1,26 @@ +// IGNORE_BACKEND_K2: JVM_IR, JS_IR, NATIVE, WASM +// FIR status: see KT-63164 +// ISSUE: KT-63164 +// DUMP_IR + +// MODULE: m1 +// FILE: info.kt + +internal class Info { + val status: String = "OK" +} + +val info: Any? = Info() + +// MODULE: m2(m1) +// FILE: box.kt + +fun getStatus(param: Any?): String { + @Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE") + if (param is Info) { + return param.status + } + return "NO STATUS" +} + +fun box(): String = getStatus(info) diff --git a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/BlackBoxCodegenTestGenerated.java b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/BlackBoxCodegenTestGenerated.java index 5ff53ef60ef..f7eb0e133c5 100644 --- a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/BlackBoxCodegenTestGenerated.java +++ b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/BlackBoxCodegenTestGenerated.java @@ -18389,6 +18389,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/fir/SamWithReceiverMavenProjectImportHandler.kt"); } + @Test + @TestMetadata("smartCastToInvisibleClassMember.kt") + public void testSmartCastToInvisibleClassMember() throws Exception { + runTest("compiler/testData/codegen/box/fir/smartCastToInvisibleClassMember.kt"); + } + @Test @TestMetadata("suppressedInvisibleReferenceQualifier.kt") public void testSuppressedInvisibleReferenceQualifier() throws Exception { diff --git a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBlackBoxCodegenTestGenerated.java b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBlackBoxCodegenTestGenerated.java index 6055c9f2629..ba722b117ca 100644 --- a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBlackBoxCodegenTestGenerated.java +++ b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBlackBoxCodegenTestGenerated.java @@ -19397,6 +19397,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/fir/selectingLambdas.kt"); } + @Test + @TestMetadata("smartCastToInvisibleClassMember.kt") + public void testSmartCastToInvisibleClassMember() throws Exception { + runTest("compiler/testData/codegen/box/fir/smartCastToInvisibleClassMember.kt"); + } + @Test @TestMetadata("StackOverflowInAnnotationLoader.kt") public void testStackOverflowInAnnotationLoader() throws Exception { diff --git a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBlackBoxCodegenWithIrInlinerTestGenerated.java b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBlackBoxCodegenWithIrInlinerTestGenerated.java index 46beb8b412e..ee23cb5b59c 100644 --- a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBlackBoxCodegenWithIrInlinerTestGenerated.java +++ b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBlackBoxCodegenWithIrInlinerTestGenerated.java @@ -19397,6 +19397,12 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack runTest("compiler/testData/codegen/box/fir/selectingLambdas.kt"); } + @Test + @TestMetadata("smartCastToInvisibleClassMember.kt") + public void testSmartCastToInvisibleClassMember() throws Exception { + runTest("compiler/testData/codegen/box/fir/smartCastToInvisibleClassMember.kt"); + } + @Test @TestMetadata("StackOverflowInAnnotationLoader.kt") public void testStackOverflowInAnnotationLoader() throws Exception { diff --git a/compiler/tests-gen/org/jetbrains/kotlin/codegen/LightAnalysisModeTestGenerated.java b/compiler/tests-gen/org/jetbrains/kotlin/codegen/LightAnalysisModeTestGenerated.java index 11cac190214..c4e688ae1a6 100644 --- a/compiler/tests-gen/org/jetbrains/kotlin/codegen/LightAnalysisModeTestGenerated.java +++ b/compiler/tests-gen/org/jetbrains/kotlin/codegen/LightAnalysisModeTestGenerated.java @@ -16171,6 +16171,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/fir/SamWithReceiverMavenProjectImportHandler.kt"); } + @TestMetadata("smartCastToInvisibleClassMember.kt") + public void testSmartCastToInvisibleClassMember() throws Exception { + runTest("compiler/testData/codegen/box/fir/smartCastToInvisibleClassMember.kt"); + } + @TestMetadata("StackOverflowInAnnotationLoader.kt") public void testStackOverflowInAnnotationLoader() throws Exception { runTest("compiler/testData/codegen/box/fir/StackOverflowInAnnotationLoader.kt"); diff --git a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/fir/FirJsCodegenBoxTestGenerated.java b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/fir/FirJsCodegenBoxTestGenerated.java index 82da001b052..8bb2f81f87e 100644 --- a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/fir/FirJsCodegenBoxTestGenerated.java +++ b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/fir/FirJsCodegenBoxTestGenerated.java @@ -14291,6 +14291,12 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest { runTest("compiler/testData/codegen/box/fir/SamWithReceiverMavenProjectImportHandler.kt"); } + @Test + @TestMetadata("smartCastToInvisibleClassMember.kt") + public void testSmartCastToInvisibleClassMember() throws Exception { + runTest("compiler/testData/codegen/box/fir/smartCastToInvisibleClassMember.kt"); + } + @Test @TestMetadata("suppressedInvisibleReferenceQualifier.kt") public void testSuppressedInvisibleReferenceQualifier() throws Exception { diff --git a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/fir/FirJsES6CodegenBoxTestGenerated.java b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/fir/FirJsES6CodegenBoxTestGenerated.java index f25c1de051f..5687fc81eeb 100644 --- a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/fir/FirJsES6CodegenBoxTestGenerated.java +++ b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/fir/FirJsES6CodegenBoxTestGenerated.java @@ -14291,6 +14291,12 @@ public class FirJsES6CodegenBoxTestGenerated extends AbstractFirJsES6CodegenBoxT runTest("compiler/testData/codegen/box/fir/SamWithReceiverMavenProjectImportHandler.kt"); } + @Test + @TestMetadata("smartCastToInvisibleClassMember.kt") + public void testSmartCastToInvisibleClassMember() throws Exception { + runTest("compiler/testData/codegen/box/fir/smartCastToInvisibleClassMember.kt"); + } + @Test @TestMetadata("suppressedInvisibleReferenceQualifier.kt") public void testSuppressedInvisibleReferenceQualifier() throws Exception { diff --git a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/IrJsCodegenBoxTestGenerated.java b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/IrJsCodegenBoxTestGenerated.java index 6ba0f02b8f7..bea821ceba8 100644 --- a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/IrJsCodegenBoxTestGenerated.java +++ b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/IrJsCodegenBoxTestGenerated.java @@ -14291,6 +14291,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/fir/SamWithReceiverMavenProjectImportHandler.kt"); } + @Test + @TestMetadata("smartCastToInvisibleClassMember.kt") + public void testSmartCastToInvisibleClassMember() throws Exception { + runTest("compiler/testData/codegen/box/fir/smartCastToInvisibleClassMember.kt"); + } + @Test @TestMetadata("suppressedInvisibleReferenceQualifier.kt") public void testSuppressedInvisibleReferenceQualifier() throws Exception { diff --git a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/IrJsES6CodegenBoxTestGenerated.java b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/IrJsES6CodegenBoxTestGenerated.java index 97d360b5f94..60ca29b887e 100644 --- a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/IrJsES6CodegenBoxTestGenerated.java +++ b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/IrJsES6CodegenBoxTestGenerated.java @@ -14291,6 +14291,12 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes runTest("compiler/testData/codegen/box/fir/SamWithReceiverMavenProjectImportHandler.kt"); } + @Test + @TestMetadata("smartCastToInvisibleClassMember.kt") + public void testSmartCastToInvisibleClassMember() throws Exception { + runTest("compiler/testData/codegen/box/fir/smartCastToInvisibleClassMember.kt"); + } + @Test @TestMetadata("suppressedInvisibleReferenceQualifier.kt") public void testSuppressedInvisibleReferenceQualifier() throws Exception { diff --git a/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/test/blackbox/FirNativeCodegenBoxTestGenerated.java b/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/test/blackbox/FirNativeCodegenBoxTestGenerated.java index 7e287e17e09..fe091f77003 100644 --- a/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/test/blackbox/FirNativeCodegenBoxTestGenerated.java +++ b/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/test/blackbox/FirNativeCodegenBoxTestGenerated.java @@ -15697,6 +15697,12 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe runTest("compiler/testData/codegen/box/fir/SamWithReceiverMavenProjectImportHandler.kt"); } + @Test + @TestMetadata("smartCastToInvisibleClassMember.kt") + public void testSmartCastToInvisibleClassMember() throws Exception { + runTest("compiler/testData/codegen/box/fir/smartCastToInvisibleClassMember.kt"); + } + @Test @TestMetadata("suppressedInvisibleReferenceQualifier.kt") public void testSuppressedInvisibleReferenceQualifier() throws Exception { diff --git a/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/test/blackbox/FirNativeCodegenBoxTestNoPLGenerated.java b/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/test/blackbox/FirNativeCodegenBoxTestNoPLGenerated.java index d1045ec1dcb..1b12bfca0bc 100644 --- a/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/test/blackbox/FirNativeCodegenBoxTestNoPLGenerated.java +++ b/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/test/blackbox/FirNativeCodegenBoxTestNoPLGenerated.java @@ -16069,6 +16069,12 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB runTest("compiler/testData/codegen/box/fir/SamWithReceiverMavenProjectImportHandler.kt"); } + @Test + @TestMetadata("smartCastToInvisibleClassMember.kt") + public void testSmartCastToInvisibleClassMember() throws Exception { + runTest("compiler/testData/codegen/box/fir/smartCastToInvisibleClassMember.kt"); + } + @Test @TestMetadata("suppressedInvisibleReferenceQualifier.kt") public void testSuppressedInvisibleReferenceQualifier() throws Exception { diff --git a/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/test/blackbox/NativeCodegenBoxTestGenerated.java b/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/test/blackbox/NativeCodegenBoxTestGenerated.java index 7cbe8893b9a..98ad02c06a0 100644 --- a/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/test/blackbox/NativeCodegenBoxTestGenerated.java +++ b/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/test/blackbox/NativeCodegenBoxTestGenerated.java @@ -15325,6 +15325,12 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/fir/SamWithReceiverMavenProjectImportHandler.kt"); } + @Test + @TestMetadata("smartCastToInvisibleClassMember.kt") + public void testSmartCastToInvisibleClassMember() throws Exception { + runTest("compiler/testData/codegen/box/fir/smartCastToInvisibleClassMember.kt"); + } + @Test @TestMetadata("suppressedInvisibleReferenceQualifier.kt") public void testSuppressedInvisibleReferenceQualifier() throws Exception { diff --git a/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/test/blackbox/NativeCodegenBoxTestNoPLGenerated.java b/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/test/blackbox/NativeCodegenBoxTestNoPLGenerated.java index ccc3511e65f..9263188fe40 100644 --- a/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/test/blackbox/NativeCodegenBoxTestNoPLGenerated.java +++ b/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/test/blackbox/NativeCodegenBoxTestNoPLGenerated.java @@ -15698,6 +15698,12 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT runTest("compiler/testData/codegen/box/fir/SamWithReceiverMavenProjectImportHandler.kt"); } + @Test + @TestMetadata("smartCastToInvisibleClassMember.kt") + public void testSmartCastToInvisibleClassMember() throws Exception { + runTest("compiler/testData/codegen/box/fir/smartCastToInvisibleClassMember.kt"); + } + @Test @TestMetadata("suppressedInvisibleReferenceQualifier.kt") public void testSuppressedInvisibleReferenceQualifier() throws Exception { diff --git a/wasm/wasm.tests/tests-gen/org/jetbrains/kotlin/wasm/test/FirWasmCodegenBoxTestGenerated.java b/wasm/wasm.tests/tests-gen/org/jetbrains/kotlin/wasm/test/FirWasmCodegenBoxTestGenerated.java index 81851768abe..7f69bf9f01f 100644 --- a/wasm/wasm.tests/tests-gen/org/jetbrains/kotlin/wasm/test/FirWasmCodegenBoxTestGenerated.java +++ b/wasm/wasm.tests/tests-gen/org/jetbrains/kotlin/wasm/test/FirWasmCodegenBoxTestGenerated.java @@ -14267,6 +14267,12 @@ public class FirWasmCodegenBoxTestGenerated extends AbstractFirWasmCodegenBoxTes runTest("compiler/testData/codegen/box/fir/SamWithReceiverMavenProjectImportHandler.kt"); } + @Test + @TestMetadata("smartCastToInvisibleClassMember.kt") + public void testSmartCastToInvisibleClassMember() throws Exception { + runTest("compiler/testData/codegen/box/fir/smartCastToInvisibleClassMember.kt"); + } + @Test @TestMetadata("suppressedInvisibleReferenceQualifier.kt") public void testSuppressedInvisibleReferenceQualifier() throws Exception { diff --git a/wasm/wasm.tests/tests-gen/org/jetbrains/kotlin/wasm/test/K1WasmCodegenBoxTestGenerated.java b/wasm/wasm.tests/tests-gen/org/jetbrains/kotlin/wasm/test/K1WasmCodegenBoxTestGenerated.java index 7cada0216a8..cb9b8c1b3b9 100644 --- a/wasm/wasm.tests/tests-gen/org/jetbrains/kotlin/wasm/test/K1WasmCodegenBoxTestGenerated.java +++ b/wasm/wasm.tests/tests-gen/org/jetbrains/kotlin/wasm/test/K1WasmCodegenBoxTestGenerated.java @@ -14267,6 +14267,12 @@ public class K1WasmCodegenBoxTestGenerated extends AbstractK1WasmCodegenBoxTest runTest("compiler/testData/codegen/box/fir/SamWithReceiverMavenProjectImportHandler.kt"); } + @Test + @TestMetadata("smartCastToInvisibleClassMember.kt") + public void testSmartCastToInvisibleClassMember() throws Exception { + runTest("compiler/testData/codegen/box/fir/smartCastToInvisibleClassMember.kt"); + } + @Test @TestMetadata("suppressedInvisibleReferenceQualifier.kt") public void testSuppressedInvisibleReferenceQualifier() throws Exception {