Add constraints between two different stub variables instead of creating constraint error due to T1 isn't subtype of T2

^KT-44241 Fixed
This commit is contained in:
Victor Petukhov
2021-06-03 12:23:15 +03:00
parent 071ae301b4
commit 1e5998e0ba
18 changed files with 209 additions and 83 deletions
@@ -17653,6 +17653,12 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
runTest("compiler/testData/codegen/box/inference/builderInference/commonSuperTypeNullable.kt");
}
@Test
@TestMetadata("constraintsBetweenTwoStubVariables.kt")
public void testConstraintsBetweenTwoStubVariables() throws Exception {
runTest("compiler/testData/codegen/box/inference/builderInference/constraintsBetweenTwoStubVariables.kt");
}
@Test
@TestMetadata("intersect.kt")
public void testIntersect() throws Exception {
@@ -17671,6 +17677,12 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
runTest("compiler/testData/codegen/box/inference/builderInference/kt42139.kt");
}
@Test
@TestMetadata("kt44241.kt")
public void testKt44241() throws Exception {
runTest("compiler/testData/codegen/box/inference/builderInference/kt44241.kt");
}
@Test
@TestMetadata("kt47052.kt")
public void testKt47052() throws Exception {