diff --git a/analysis/low-level-api-fir/tests/org/jetbrains/kotlin/analysis/low/level/api/fir/diagnostic/compiler/based/DiagnosticCompilerTestFE10TestdataTestGenerated.java b/analysis/low-level-api-fir/tests/org/jetbrains/kotlin/analysis/low/level/api/fir/diagnostic/compiler/based/DiagnosticCompilerTestFE10TestdataTestGenerated.java index a7eb3ff08e0..38cd0de3a14 100644 --- a/analysis/low-level-api-fir/tests/org/jetbrains/kotlin/analysis/low/level/api/fir/diagnostic/compiler/based/DiagnosticCompilerTestFE10TestdataTestGenerated.java +++ b/analysis/low-level-api-fir/tests/org/jetbrains/kotlin/analysis/low/level/api/fir/diagnostic/compiler/based/DiagnosticCompilerTestFE10TestdataTestGenerated.java @@ -34208,6 +34208,18 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia runTest("compiler/testData/diagnostics/tests/smartCasts/notNullorNotNull.kt"); } + @Test + @TestMetadata("NullableFunctionTypeAsMemberMutableProperty.kt") + public void testNullableFunctionTypeAsMemberMutableProperty() throws Exception { + runTest("compiler/testData/diagnostics/tests/smartCasts/NullableFunctionTypeAsMemberMutableProperty.kt"); + } + + @Test + @TestMetadata("NullableFunctionTypeAsMemberMutablePropertyFromConstructor.kt") + public void testNullableFunctionTypeAsMemberMutablePropertyFromConstructor() throws Exception { + runTest("compiler/testData/diagnostics/tests/smartCasts/NullableFunctionTypeAsMemberMutablePropertyFromConstructor.kt"); + } + @Test @TestMetadata("openInSealed.kt") public void testOpenInSealed() throws Exception { 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 166d215391b..d85d1e3743d 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 @@ -51568,6 +51568,30 @@ public class LLFirBlackBoxCodegenBasedTestGenerated extends AbstractLLFirBlackBo runTest("compiler/testData/codegen/box/smartCasts/nullSmartCast.kt"); } + @Test + @TestMetadata("NullableFunctionTypeAsMemberImmutableProperty.kt") + public void testNullableFunctionTypeAsMemberImmutableProperty() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/NullableFunctionTypeAsMemberImmutableProperty.kt"); + } + + @Test + @TestMetadata("NullableFunctionTypeAsMemberImmutablePropertyFromConstructor.kt") + public void testNullableFunctionTypeAsMemberImmutablePropertyFromConstructor() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/NullableFunctionTypeAsMemberImmutablePropertyFromConstructor.kt"); + } + + @Test + @TestMetadata("NullableFunctionTypeAsPrimaryConstructorParameter.kt") + public void testNullableFunctionTypeAsPrimaryConstructorParameter() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/NullableFunctionTypeAsPrimaryConstructorParameter.kt"); + } + + @Test + @TestMetadata("NullableFunctionTypeAsSecondaryConstructorParameter.kt") + public void testNullableFunctionTypeAsSecondaryConstructorParameter() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/NullableFunctionTypeAsSecondaryConstructorParameter.kt"); + } + @Test @TestMetadata("propertyInitializationAfterSmartCast.kt") public void testPropertyInitializationAfterSmartCast() throws Exception { diff --git a/analysis/low-level-api-fir/tests/org/jetbrains/kotlin/analysis/low/level/api/fir/diagnostic/compiler/based/LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated.java b/analysis/low-level-api-fir/tests/org/jetbrains/kotlin/analysis/low/level/api/fir/diagnostic/compiler/based/LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated.java index e17c25160ce..a9851d3049d 100644 --- a/analysis/low-level-api-fir/tests/org/jetbrains/kotlin/analysis/low/level/api/fir/diagnostic/compiler/based/LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated.java +++ b/analysis/low-level-api-fir/tests/org/jetbrains/kotlin/analysis/low/level/api/fir/diagnostic/compiler/based/LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated.java @@ -34208,6 +34208,18 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated runTest("compiler/testData/diagnostics/tests/smartCasts/notNullorNotNull.kt"); } + @Test + @TestMetadata("NullableFunctionTypeAsMemberMutableProperty.kt") + public void testNullableFunctionTypeAsMemberMutableProperty() throws Exception { + runTest("compiler/testData/diagnostics/tests/smartCasts/NullableFunctionTypeAsMemberMutableProperty.kt"); + } + + @Test + @TestMetadata("NullableFunctionTypeAsMemberMutablePropertyFromConstructor.kt") + public void testNullableFunctionTypeAsMemberMutablePropertyFromConstructor() throws Exception { + runTest("compiler/testData/diagnostics/tests/smartCasts/NullableFunctionTypeAsMemberMutablePropertyFromConstructor.kt"); + } + @Test @TestMetadata("openInSealed.kt") public void testOpenInSealed() 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 91438479676..afb30c272bd 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 @@ -51568,6 +51568,30 @@ public class LLFirReversedBlackBoxCodegenBasedTestGenerated extends AbstractLLFi runTest("compiler/testData/codegen/box/smartCasts/nullSmartCast.kt"); } + @Test + @TestMetadata("NullableFunctionTypeAsMemberImmutableProperty.kt") + public void testNullableFunctionTypeAsMemberImmutableProperty() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/NullableFunctionTypeAsMemberImmutableProperty.kt"); + } + + @Test + @TestMetadata("NullableFunctionTypeAsMemberImmutablePropertyFromConstructor.kt") + public void testNullableFunctionTypeAsMemberImmutablePropertyFromConstructor() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/NullableFunctionTypeAsMemberImmutablePropertyFromConstructor.kt"); + } + + @Test + @TestMetadata("NullableFunctionTypeAsPrimaryConstructorParameter.kt") + public void testNullableFunctionTypeAsPrimaryConstructorParameter() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/NullableFunctionTypeAsPrimaryConstructorParameter.kt"); + } + + @Test + @TestMetadata("NullableFunctionTypeAsSecondaryConstructorParameter.kt") + public void testNullableFunctionTypeAsSecondaryConstructorParameter() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/NullableFunctionTypeAsSecondaryConstructorParameter.kt"); + } + @Test @TestMetadata("propertyInitializationAfterSmartCast.kt") public void testPropertyInitializationAfterSmartCast() throws Exception { diff --git a/compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/test/runners/FirLightTreeOldFrontendDiagnosticsTestGenerated.java b/compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/test/runners/FirLightTreeOldFrontendDiagnosticsTestGenerated.java index 4745937dc7e..349415a8d11 100644 --- a/compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/test/runners/FirLightTreeOldFrontendDiagnosticsTestGenerated.java +++ b/compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/test/runners/FirLightTreeOldFrontendDiagnosticsTestGenerated.java @@ -32028,6 +32028,18 @@ public class FirLightTreeOldFrontendDiagnosticsTestGenerated extends AbstractFir runTest("compiler/testData/diagnostics/tests/smartCasts/notNullorNotNull.kt"); } + @Test + @TestMetadata("NullableFunctionTypeAsMemberMutableProperty.kt") + public void testNullableFunctionTypeAsMemberMutableProperty() throws Exception { + runTest("compiler/testData/diagnostics/tests/smartCasts/NullableFunctionTypeAsMemberMutableProperty.kt"); + } + + @Test + @TestMetadata("NullableFunctionTypeAsMemberMutablePropertyFromConstructor.kt") + public void testNullableFunctionTypeAsMemberMutablePropertyFromConstructor() throws Exception { + runTest("compiler/testData/diagnostics/tests/smartCasts/NullableFunctionTypeAsMemberMutablePropertyFromConstructor.kt"); + } + @Test @TestMetadata("openInSealed.kt") public void testOpenInSealed() throws Exception { diff --git a/compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/test/runners/FirPsiOldFrontendDiagnosticsTestGenerated.java b/compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/test/runners/FirPsiOldFrontendDiagnosticsTestGenerated.java index 8a77adbfa7c..8733a20c738 100644 --- a/compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/test/runners/FirPsiOldFrontendDiagnosticsTestGenerated.java +++ b/compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/test/runners/FirPsiOldFrontendDiagnosticsTestGenerated.java @@ -32148,6 +32148,18 @@ public class FirPsiOldFrontendDiagnosticsTestGenerated extends AbstractFirPsiDia runTest("compiler/testData/diagnostics/tests/smartCasts/notNullorNotNull.kt"); } + @Test + @TestMetadata("NullableFunctionTypeAsMemberMutableProperty.kt") + public void testNullableFunctionTypeAsMemberMutableProperty() throws Exception { + runTest("compiler/testData/diagnostics/tests/smartCasts/NullableFunctionTypeAsMemberMutableProperty.kt"); + } + + @Test + @TestMetadata("NullableFunctionTypeAsMemberMutablePropertyFromConstructor.kt") + public void testNullableFunctionTypeAsMemberMutablePropertyFromConstructor() throws Exception { + runTest("compiler/testData/diagnostics/tests/smartCasts/NullableFunctionTypeAsMemberMutablePropertyFromConstructor.kt"); + } + @Test @TestMetadata("openInSealed.kt") public void testOpenInSealed() 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 883c7a4f08f..1bd48c82cf6 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 @@ -50993,6 +50993,30 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr runTest("compiler/testData/codegen/box/smartCasts/nullSmartCast.kt"); } + @Test + @TestMetadata("NullableFunctionTypeAsMemberImmutableProperty.kt") + public void testNullableFunctionTypeAsMemberImmutableProperty() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/NullableFunctionTypeAsMemberImmutableProperty.kt"); + } + + @Test + @TestMetadata("NullableFunctionTypeAsMemberImmutablePropertyFromConstructor.kt") + public void testNullableFunctionTypeAsMemberImmutablePropertyFromConstructor() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/NullableFunctionTypeAsMemberImmutablePropertyFromConstructor.kt"); + } + + @Test + @TestMetadata("NullableFunctionTypeAsPrimaryConstructorParameter.kt") + public void testNullableFunctionTypeAsPrimaryConstructorParameter() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/NullableFunctionTypeAsPrimaryConstructorParameter.kt"); + } + + @Test + @TestMetadata("NullableFunctionTypeAsSecondaryConstructorParameter.kt") + public void testNullableFunctionTypeAsSecondaryConstructorParameter() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/NullableFunctionTypeAsSecondaryConstructorParameter.kt"); + } + @Test @TestMetadata("propertyInitializationAfterSmartCast.kt") public void testPropertyInitializationAfterSmartCast() 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 2e6fc6b47a3..73b2cea06fe 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 @@ -50993,6 +50993,30 @@ public class FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated runTest("compiler/testData/codegen/box/smartCasts/nullSmartCast.kt"); } + @Test + @TestMetadata("NullableFunctionTypeAsMemberImmutableProperty.kt") + public void testNullableFunctionTypeAsMemberImmutableProperty() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/NullableFunctionTypeAsMemberImmutableProperty.kt"); + } + + @Test + @TestMetadata("NullableFunctionTypeAsMemberImmutablePropertyFromConstructor.kt") + public void testNullableFunctionTypeAsMemberImmutablePropertyFromConstructor() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/NullableFunctionTypeAsMemberImmutablePropertyFromConstructor.kt"); + } + + @Test + @TestMetadata("NullableFunctionTypeAsPrimaryConstructorParameter.kt") + public void testNullableFunctionTypeAsPrimaryConstructorParameter() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/NullableFunctionTypeAsPrimaryConstructorParameter.kt"); + } + + @Test + @TestMetadata("NullableFunctionTypeAsSecondaryConstructorParameter.kt") + public void testNullableFunctionTypeAsSecondaryConstructorParameter() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/NullableFunctionTypeAsSecondaryConstructorParameter.kt"); + } + @Test @TestMetadata("propertyInitializationAfterSmartCast.kt") public void testPropertyInitializationAfterSmartCast() 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 66f7c1a2e53..63018a1cb4d 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 @@ -50993,6 +50993,30 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo runTest("compiler/testData/codegen/box/smartCasts/nullSmartCast.kt"); } + @Test + @TestMetadata("NullableFunctionTypeAsMemberImmutableProperty.kt") + public void testNullableFunctionTypeAsMemberImmutableProperty() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/NullableFunctionTypeAsMemberImmutableProperty.kt"); + } + + @Test + @TestMetadata("NullableFunctionTypeAsMemberImmutablePropertyFromConstructor.kt") + public void testNullableFunctionTypeAsMemberImmutablePropertyFromConstructor() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/NullableFunctionTypeAsMemberImmutablePropertyFromConstructor.kt"); + } + + @Test + @TestMetadata("NullableFunctionTypeAsPrimaryConstructorParameter.kt") + public void testNullableFunctionTypeAsPrimaryConstructorParameter() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/NullableFunctionTypeAsPrimaryConstructorParameter.kt"); + } + + @Test + @TestMetadata("NullableFunctionTypeAsSecondaryConstructorParameter.kt") + public void testNullableFunctionTypeAsSecondaryConstructorParameter() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/NullableFunctionTypeAsSecondaryConstructorParameter.kt"); + } + @Test @TestMetadata("propertyInitializationAfterSmartCast.kt") public void testPropertyInitializationAfterSmartCast() throws Exception { diff --git a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/DiagnosticTestGenerated.java b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/DiagnosticTestGenerated.java index eb7173e1cd2..63a938ab75f 100644 --- a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/DiagnosticTestGenerated.java +++ b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/DiagnosticTestGenerated.java @@ -34208,6 +34208,18 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest { runTest("compiler/testData/diagnostics/tests/smartCasts/notNullorNotNull.kt"); } + @Test + @TestMetadata("NullableFunctionTypeAsMemberMutableProperty.kt") + public void testNullableFunctionTypeAsMemberMutableProperty() throws Exception { + runTest("compiler/testData/diagnostics/tests/smartCasts/NullableFunctionTypeAsMemberMutableProperty.kt"); + } + + @Test + @TestMetadata("NullableFunctionTypeAsMemberMutablePropertyFromConstructor.kt") + public void testNullableFunctionTypeAsMemberMutablePropertyFromConstructor() throws Exception { + runTest("compiler/testData/diagnostics/tests/smartCasts/NullableFunctionTypeAsMemberMutablePropertyFromConstructor.kt"); + } + @Test @TestMetadata("openInSealed.kt") public void testOpenInSealed() throws Exception { 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 855b7056946..bc4f84e0ab9 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 @@ -47987,6 +47987,30 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/smartCasts/nullSmartCast.kt"); } + @Test + @TestMetadata("NullableFunctionTypeAsMemberImmutableProperty.kt") + public void testNullableFunctionTypeAsMemberImmutableProperty() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/NullableFunctionTypeAsMemberImmutableProperty.kt"); + } + + @Test + @TestMetadata("NullableFunctionTypeAsMemberImmutablePropertyFromConstructor.kt") + public void testNullableFunctionTypeAsMemberImmutablePropertyFromConstructor() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/NullableFunctionTypeAsMemberImmutablePropertyFromConstructor.kt"); + } + + @Test + @TestMetadata("NullableFunctionTypeAsPrimaryConstructorParameter.kt") + public void testNullableFunctionTypeAsPrimaryConstructorParameter() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/NullableFunctionTypeAsPrimaryConstructorParameter.kt"); + } + + @Test + @TestMetadata("NullableFunctionTypeAsSecondaryConstructorParameter.kt") + public void testNullableFunctionTypeAsSecondaryConstructorParameter() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/NullableFunctionTypeAsSecondaryConstructorParameter.kt"); + } + @Test @TestMetadata("propertyInitializationAfterSmartCast.kt") public void testPropertyInitializationAfterSmartCast() 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 d01f368adb9..18cb6d44c7a 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 @@ -50993,6 +50993,30 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/smartCasts/nullSmartCast.kt"); } + @Test + @TestMetadata("NullableFunctionTypeAsMemberImmutableProperty.kt") + public void testNullableFunctionTypeAsMemberImmutableProperty() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/NullableFunctionTypeAsMemberImmutableProperty.kt"); + } + + @Test + @TestMetadata("NullableFunctionTypeAsMemberImmutablePropertyFromConstructor.kt") + public void testNullableFunctionTypeAsMemberImmutablePropertyFromConstructor() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/NullableFunctionTypeAsMemberImmutablePropertyFromConstructor.kt"); + } + + @Test + @TestMetadata("NullableFunctionTypeAsPrimaryConstructorParameter.kt") + public void testNullableFunctionTypeAsPrimaryConstructorParameter() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/NullableFunctionTypeAsPrimaryConstructorParameter.kt"); + } + + @Test + @TestMetadata("NullableFunctionTypeAsSecondaryConstructorParameter.kt") + public void testNullableFunctionTypeAsSecondaryConstructorParameter() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/NullableFunctionTypeAsSecondaryConstructorParameter.kt"); + } + @Test @TestMetadata("propertyInitializationAfterSmartCast.kt") public void testPropertyInitializationAfterSmartCast() 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 44946765177..7d24c624622 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 @@ -50993,6 +50993,30 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack runTest("compiler/testData/codegen/box/smartCasts/nullSmartCast.kt"); } + @Test + @TestMetadata("NullableFunctionTypeAsMemberImmutableProperty.kt") + public void testNullableFunctionTypeAsMemberImmutableProperty() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/NullableFunctionTypeAsMemberImmutableProperty.kt"); + } + + @Test + @TestMetadata("NullableFunctionTypeAsMemberImmutablePropertyFromConstructor.kt") + public void testNullableFunctionTypeAsMemberImmutablePropertyFromConstructor() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/NullableFunctionTypeAsMemberImmutablePropertyFromConstructor.kt"); + } + + @Test + @TestMetadata("NullableFunctionTypeAsPrimaryConstructorParameter.kt") + public void testNullableFunctionTypeAsPrimaryConstructorParameter() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/NullableFunctionTypeAsPrimaryConstructorParameter.kt"); + } + + @Test + @TestMetadata("NullableFunctionTypeAsSecondaryConstructorParameter.kt") + public void testNullableFunctionTypeAsSecondaryConstructorParameter() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/NullableFunctionTypeAsSecondaryConstructorParameter.kt"); + } + @Test @TestMetadata("propertyInitializationAfterSmartCast.kt") public void testPropertyInitializationAfterSmartCast() 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 a52a11d6a5b..65e495b3ef6 100644 --- a/compiler/tests-gen/org/jetbrains/kotlin/codegen/LightAnalysisModeTestGenerated.java +++ b/compiler/tests-gen/org/jetbrains/kotlin/codegen/LightAnalysisModeTestGenerated.java @@ -41047,6 +41047,26 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/smartCasts/nullSmartCast.kt"); } + @TestMetadata("NullableFunctionTypeAsMemberImmutableProperty.kt") + public void testNullableFunctionTypeAsMemberImmutableProperty() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/NullableFunctionTypeAsMemberImmutableProperty.kt"); + } + + @TestMetadata("NullableFunctionTypeAsMemberImmutablePropertyFromConstructor.kt") + public void testNullableFunctionTypeAsMemberImmutablePropertyFromConstructor() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/NullableFunctionTypeAsMemberImmutablePropertyFromConstructor.kt"); + } + + @TestMetadata("NullableFunctionTypeAsPrimaryConstructorParameter.kt") + public void testNullableFunctionTypeAsPrimaryConstructorParameter() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/NullableFunctionTypeAsPrimaryConstructorParameter.kt"); + } + + @TestMetadata("NullableFunctionTypeAsSecondaryConstructorParameter.kt") + public void testNullableFunctionTypeAsSecondaryConstructorParameter() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/NullableFunctionTypeAsSecondaryConstructorParameter.kt"); + } + @TestMetadata("propertyInitializationAfterSmartCast.kt") public void testPropertyInitializationAfterSmartCast() throws Exception { runTest("compiler/testData/codegen/box/smartCasts/propertyInitializationAfterSmartCast.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 f26828e072b..36a66dac9e4 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 @@ -35339,6 +35339,30 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest { runTest("compiler/testData/codegen/box/smartCasts/nullSmartCast.kt"); } + @Test + @TestMetadata("NullableFunctionTypeAsMemberImmutableProperty.kt") + public void testNullableFunctionTypeAsMemberImmutableProperty() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/NullableFunctionTypeAsMemberImmutableProperty.kt"); + } + + @Test + @TestMetadata("NullableFunctionTypeAsMemberImmutablePropertyFromConstructor.kt") + public void testNullableFunctionTypeAsMemberImmutablePropertyFromConstructor() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/NullableFunctionTypeAsMemberImmutablePropertyFromConstructor.kt"); + } + + @Test + @TestMetadata("NullableFunctionTypeAsPrimaryConstructorParameter.kt") + public void testNullableFunctionTypeAsPrimaryConstructorParameter() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/NullableFunctionTypeAsPrimaryConstructorParameter.kt"); + } + + @Test + @TestMetadata("NullableFunctionTypeAsSecondaryConstructorParameter.kt") + public void testNullableFunctionTypeAsSecondaryConstructorParameter() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/NullableFunctionTypeAsSecondaryConstructorParameter.kt"); + } + @Test @TestMetadata("propertyInitializationAfterSmartCast.kt") public void testPropertyInitializationAfterSmartCast() 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 1b2abcaeee5..f33ff1cc65d 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 @@ -35339,6 +35339,30 @@ public class FirJsES6CodegenBoxTestGenerated extends AbstractFirJsES6CodegenBoxT runTest("compiler/testData/codegen/box/smartCasts/nullSmartCast.kt"); } + @Test + @TestMetadata("NullableFunctionTypeAsMemberImmutableProperty.kt") + public void testNullableFunctionTypeAsMemberImmutableProperty() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/NullableFunctionTypeAsMemberImmutableProperty.kt"); + } + + @Test + @TestMetadata("NullableFunctionTypeAsMemberImmutablePropertyFromConstructor.kt") + public void testNullableFunctionTypeAsMemberImmutablePropertyFromConstructor() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/NullableFunctionTypeAsMemberImmutablePropertyFromConstructor.kt"); + } + + @Test + @TestMetadata("NullableFunctionTypeAsPrimaryConstructorParameter.kt") + public void testNullableFunctionTypeAsPrimaryConstructorParameter() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/NullableFunctionTypeAsPrimaryConstructorParameter.kt"); + } + + @Test + @TestMetadata("NullableFunctionTypeAsSecondaryConstructorParameter.kt") + public void testNullableFunctionTypeAsSecondaryConstructorParameter() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/NullableFunctionTypeAsSecondaryConstructorParameter.kt"); + } + @Test @TestMetadata("propertyInitializationAfterSmartCast.kt") public void testPropertyInitializationAfterSmartCast() 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 2aad5b18751..493afe06702 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 @@ -35339,6 +35339,30 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/smartCasts/nullSmartCast.kt"); } + @Test + @TestMetadata("NullableFunctionTypeAsMemberImmutableProperty.kt") + public void testNullableFunctionTypeAsMemberImmutableProperty() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/NullableFunctionTypeAsMemberImmutableProperty.kt"); + } + + @Test + @TestMetadata("NullableFunctionTypeAsMemberImmutablePropertyFromConstructor.kt") + public void testNullableFunctionTypeAsMemberImmutablePropertyFromConstructor() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/NullableFunctionTypeAsMemberImmutablePropertyFromConstructor.kt"); + } + + @Test + @TestMetadata("NullableFunctionTypeAsPrimaryConstructorParameter.kt") + public void testNullableFunctionTypeAsPrimaryConstructorParameter() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/NullableFunctionTypeAsPrimaryConstructorParameter.kt"); + } + + @Test + @TestMetadata("NullableFunctionTypeAsSecondaryConstructorParameter.kt") + public void testNullableFunctionTypeAsSecondaryConstructorParameter() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/NullableFunctionTypeAsSecondaryConstructorParameter.kt"); + } + @Test @TestMetadata("propertyInitializationAfterSmartCast.kt") public void testPropertyInitializationAfterSmartCast() 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 ca5f9250329..a984e49cec4 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 @@ -35339,6 +35339,30 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes runTest("compiler/testData/codegen/box/smartCasts/nullSmartCast.kt"); } + @Test + @TestMetadata("NullableFunctionTypeAsMemberImmutableProperty.kt") + public void testNullableFunctionTypeAsMemberImmutableProperty() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/NullableFunctionTypeAsMemberImmutableProperty.kt"); + } + + @Test + @TestMetadata("NullableFunctionTypeAsMemberImmutablePropertyFromConstructor.kt") + public void testNullableFunctionTypeAsMemberImmutablePropertyFromConstructor() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/NullableFunctionTypeAsMemberImmutablePropertyFromConstructor.kt"); + } + + @Test + @TestMetadata("NullableFunctionTypeAsPrimaryConstructorParameter.kt") + public void testNullableFunctionTypeAsPrimaryConstructorParameter() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/NullableFunctionTypeAsPrimaryConstructorParameter.kt"); + } + + @Test + @TestMetadata("NullableFunctionTypeAsSecondaryConstructorParameter.kt") + public void testNullableFunctionTypeAsSecondaryConstructorParameter() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/NullableFunctionTypeAsSecondaryConstructorParameter.kt"); + } + @Test @TestMetadata("propertyInitializationAfterSmartCast.kt") public void testPropertyInitializationAfterSmartCast() 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 f6d7ae6442d..5dfcc07d73a 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 @@ -39031,6 +39031,30 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe runTest("compiler/testData/codegen/box/smartCasts/nullSmartCast.kt"); } + @Test + @TestMetadata("NullableFunctionTypeAsMemberImmutableProperty.kt") + public void testNullableFunctionTypeAsMemberImmutableProperty() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/NullableFunctionTypeAsMemberImmutableProperty.kt"); + } + + @Test + @TestMetadata("NullableFunctionTypeAsMemberImmutablePropertyFromConstructor.kt") + public void testNullableFunctionTypeAsMemberImmutablePropertyFromConstructor() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/NullableFunctionTypeAsMemberImmutablePropertyFromConstructor.kt"); + } + + @Test + @TestMetadata("NullableFunctionTypeAsPrimaryConstructorParameter.kt") + public void testNullableFunctionTypeAsPrimaryConstructorParameter() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/NullableFunctionTypeAsPrimaryConstructorParameter.kt"); + } + + @Test + @TestMetadata("NullableFunctionTypeAsSecondaryConstructorParameter.kt") + public void testNullableFunctionTypeAsSecondaryConstructorParameter() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/NullableFunctionTypeAsSecondaryConstructorParameter.kt"); + } + @Test @TestMetadata("propertyInitializationAfterSmartCast.kt") public void testPropertyInitializationAfterSmartCast() 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 0752346e2d8..bd62938d658 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 @@ -40033,6 +40033,30 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB runTest("compiler/testData/codegen/box/smartCasts/nullSmartCast.kt"); } + @Test + @TestMetadata("NullableFunctionTypeAsMemberImmutableProperty.kt") + public void testNullableFunctionTypeAsMemberImmutableProperty() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/NullableFunctionTypeAsMemberImmutableProperty.kt"); + } + + @Test + @TestMetadata("NullableFunctionTypeAsMemberImmutablePropertyFromConstructor.kt") + public void testNullableFunctionTypeAsMemberImmutablePropertyFromConstructor() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/NullableFunctionTypeAsMemberImmutablePropertyFromConstructor.kt"); + } + + @Test + @TestMetadata("NullableFunctionTypeAsPrimaryConstructorParameter.kt") + public void testNullableFunctionTypeAsPrimaryConstructorParameter() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/NullableFunctionTypeAsPrimaryConstructorParameter.kt"); + } + + @Test + @TestMetadata("NullableFunctionTypeAsSecondaryConstructorParameter.kt") + public void testNullableFunctionTypeAsSecondaryConstructorParameter() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/NullableFunctionTypeAsSecondaryConstructorParameter.kt"); + } + @Test @TestMetadata("propertyInitializationAfterSmartCast.kt") public void testPropertyInitializationAfterSmartCast() 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 b1dbe708c29..81c4960eb0b 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 @@ -38029,6 +38029,30 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/smartCasts/nullSmartCast.kt"); } + @Test + @TestMetadata("NullableFunctionTypeAsMemberImmutableProperty.kt") + public void testNullableFunctionTypeAsMemberImmutableProperty() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/NullableFunctionTypeAsMemberImmutableProperty.kt"); + } + + @Test + @TestMetadata("NullableFunctionTypeAsMemberImmutablePropertyFromConstructor.kt") + public void testNullableFunctionTypeAsMemberImmutablePropertyFromConstructor() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/NullableFunctionTypeAsMemberImmutablePropertyFromConstructor.kt"); + } + + @Test + @TestMetadata("NullableFunctionTypeAsPrimaryConstructorParameter.kt") + public void testNullableFunctionTypeAsPrimaryConstructorParameter() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/NullableFunctionTypeAsPrimaryConstructorParameter.kt"); + } + + @Test + @TestMetadata("NullableFunctionTypeAsSecondaryConstructorParameter.kt") + public void testNullableFunctionTypeAsSecondaryConstructorParameter() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/NullableFunctionTypeAsSecondaryConstructorParameter.kt"); + } + @Test @TestMetadata("propertyInitializationAfterSmartCast.kt") public void testPropertyInitializationAfterSmartCast() 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 8294936f9b9..bdeaec551f1 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 @@ -39032,6 +39032,30 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT runTest("compiler/testData/codegen/box/smartCasts/nullSmartCast.kt"); } + @Test + @TestMetadata("NullableFunctionTypeAsMemberImmutableProperty.kt") + public void testNullableFunctionTypeAsMemberImmutableProperty() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/NullableFunctionTypeAsMemberImmutableProperty.kt"); + } + + @Test + @TestMetadata("NullableFunctionTypeAsMemberImmutablePropertyFromConstructor.kt") + public void testNullableFunctionTypeAsMemberImmutablePropertyFromConstructor() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/NullableFunctionTypeAsMemberImmutablePropertyFromConstructor.kt"); + } + + @Test + @TestMetadata("NullableFunctionTypeAsPrimaryConstructorParameter.kt") + public void testNullableFunctionTypeAsPrimaryConstructorParameter() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/NullableFunctionTypeAsPrimaryConstructorParameter.kt"); + } + + @Test + @TestMetadata("NullableFunctionTypeAsSecondaryConstructorParameter.kt") + public void testNullableFunctionTypeAsSecondaryConstructorParameter() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/NullableFunctionTypeAsSecondaryConstructorParameter.kt"); + } + @Test @TestMetadata("propertyInitializationAfterSmartCast.kt") public void testPropertyInitializationAfterSmartCast() 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 37616dcbf7f..274be5064c2 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 @@ -35237,6 +35237,30 @@ public class FirWasmCodegenBoxTestGenerated extends AbstractFirWasmCodegenBoxTes runTest("compiler/testData/codegen/box/smartCasts/nullSmartCast.kt"); } + @Test + @TestMetadata("NullableFunctionTypeAsMemberImmutableProperty.kt") + public void testNullableFunctionTypeAsMemberImmutableProperty() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/NullableFunctionTypeAsMemberImmutableProperty.kt"); + } + + @Test + @TestMetadata("NullableFunctionTypeAsMemberImmutablePropertyFromConstructor.kt") + public void testNullableFunctionTypeAsMemberImmutablePropertyFromConstructor() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/NullableFunctionTypeAsMemberImmutablePropertyFromConstructor.kt"); + } + + @Test + @TestMetadata("NullableFunctionTypeAsPrimaryConstructorParameter.kt") + public void testNullableFunctionTypeAsPrimaryConstructorParameter() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/NullableFunctionTypeAsPrimaryConstructorParameter.kt"); + } + + @Test + @TestMetadata("NullableFunctionTypeAsSecondaryConstructorParameter.kt") + public void testNullableFunctionTypeAsSecondaryConstructorParameter() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/NullableFunctionTypeAsSecondaryConstructorParameter.kt"); + } + @Test @TestMetadata("propertyInitializationAfterSmartCast.kt") public void testPropertyInitializationAfterSmartCast() 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 212933c4798..db6ad9e71fd 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 @@ -35237,6 +35237,30 @@ public class K1WasmCodegenBoxTestGenerated extends AbstractK1WasmCodegenBoxTest runTest("compiler/testData/codegen/box/smartCasts/nullSmartCast.kt"); } + @Test + @TestMetadata("NullableFunctionTypeAsMemberImmutableProperty.kt") + public void testNullableFunctionTypeAsMemberImmutableProperty() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/NullableFunctionTypeAsMemberImmutableProperty.kt"); + } + + @Test + @TestMetadata("NullableFunctionTypeAsMemberImmutablePropertyFromConstructor.kt") + public void testNullableFunctionTypeAsMemberImmutablePropertyFromConstructor() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/NullableFunctionTypeAsMemberImmutablePropertyFromConstructor.kt"); + } + + @Test + @TestMetadata("NullableFunctionTypeAsPrimaryConstructorParameter.kt") + public void testNullableFunctionTypeAsPrimaryConstructorParameter() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/NullableFunctionTypeAsPrimaryConstructorParameter.kt"); + } + + @Test + @TestMetadata("NullableFunctionTypeAsSecondaryConstructorParameter.kt") + public void testNullableFunctionTypeAsSecondaryConstructorParameter() throws Exception { + runTest("compiler/testData/codegen/box/smartCasts/NullableFunctionTypeAsSecondaryConstructorParameter.kt"); + } + @Test @TestMetadata("propertyInitializationAfterSmartCast.kt") public void testPropertyInitializationAfterSmartCast() throws Exception {