[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:
committed by
Space Team
parent
50841e7cb0
commit
6972391185
+6
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user