[FE] Make dynamic a suitable resulted type

This fixes a FIR-specific issue where a type variable is inferred to
Any instead of dynamic. K1 wasn't affected because of a FIR-specific
condition in ResultTypeResolver.

#KT-57962 Fixed
This commit is contained in:
Kirill Rakhman
2023-04-19 15:52:18 +02:00
committed by Space Team
parent 50841e7cb0
commit 6972391185
6 changed files with 52 additions and 1 deletions
@@ -374,6 +374,12 @@ public class FirPsiJsOldFrontendDiagnosticsTestGenerated extends AbstractFirPsiJ
runTest("compiler/testData/diagnostics/testsWithJsStdLib/dynamicTypes/reified.kt");
}
@Test
@TestMetadata("setOperatorOnDynamic.kt")
public void testSetOperatorOnDynamic() throws Exception {
runTest("compiler/testData/diagnostics/testsWithJsStdLib/dynamicTypes/setOperatorOnDynamic.kt");
}
@Test
@TestMetadata("smartCast.kt")
public void testSmartCast() throws Exception {