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
@@ -13877,6 +13877,11 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
runTest("compiler/testData/codegen/box/inference/manyFlexibleTypeParametersFromJavaAndConversions.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");