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:
Generated
+5
@@ -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");
|
||||
|
||||
Generated
+5
@@ -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");
|
||||
|
||||
+5
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user