Use initial system for completion if common one is effectively empty

Otherwise we can get unsubstituted type variables as expected types and
 then write wrong information for assertions

 #KT-41470 Fixed
This commit is contained in:
Mikhail Zarechenskiy
2020-08-28 15:11:52 +03:00
parent bb18203ae6
commit 23f87d413a
9 changed files with 87 additions and 8 deletions
@@ -10827,6 +10827,11 @@ public class IrJsCodegenBoxES6TestGenerated extends AbstractIrJsCodegenBoxES6Tes
runTest("compiler/testData/codegen/box/inference/lastExpressionOfLambdaWithNothingConstraint.kt");
}
@TestMetadata("mapCollectChainWithNullResult.kt")
public void testMapCollectChainWithNullResult() throws Exception {
runTest("compiler/testData/codegen/box/inference/mapCollectChainWithNullResult.kt");
}
@TestMetadata("noCoercionToUniForNullableLambdaReturnType.kt")
public void testNoCoercionToUniForNullableLambdaReturnType() throws Exception {
runTest("compiler/testData/codegen/box/inference/noCoercionToUniForNullableLambdaReturnType.kt");
@@ -10827,6 +10827,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/inference/lastExpressionOfLambdaWithNothingConstraint.kt");
}
@TestMetadata("mapCollectChainWithNullResult.kt")
public void testMapCollectChainWithNullResult() throws Exception {
runTest("compiler/testData/codegen/box/inference/mapCollectChainWithNullResult.kt");
}
@TestMetadata("noCoercionToUniForNullableLambdaReturnType.kt")
public void testNoCoercionToUniForNullableLambdaReturnType() throws Exception {
runTest("compiler/testData/codegen/box/inference/noCoercionToUniForNullableLambdaReturnType.kt");
@@ -10892,6 +10892,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/inference/lastExpressionOfLambdaWithNothingConstraint.kt");
}
@TestMetadata("mapCollectChainWithNullResult.kt")
public void testMapCollectChainWithNullResult() throws Exception {
runTest("compiler/testData/codegen/box/inference/mapCollectChainWithNullResult.kt");
}
@TestMetadata("noCoercionToUniForNullableLambdaReturnType.kt")
public void testNoCoercionToUniForNullableLambdaReturnType() throws Exception {
runTest("compiler/testData/codegen/box/inference/noCoercionToUniForNullableLambdaReturnType.kt");