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:
js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/es6/semantics/IrJsCodegenBoxES6TestGenerated.java
Generated
+10
@@ -12760,6 +12760,11 @@ public class IrJsCodegenBoxES6TestGenerated extends AbstractIrJsCodegenBoxES6Tes
|
||||
runTest("compiler/testData/codegen/box/inference/builderInference/capturedTypes.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("constraintsBetweenTwoStubVariables.kt")
|
||||
public void testConstraintsBetweenTwoStubVariables() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inference/builderInference/constraintsBetweenTwoStubVariables.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt41164.kt")
|
||||
public void testKt41164() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inference/builderInference/kt41164.kt");
|
||||
@@ -12770,6 +12775,11 @@ public class IrJsCodegenBoxES6TestGenerated extends AbstractIrJsCodegenBoxES6Tes
|
||||
runTest("compiler/testData/codegen/box/inference/builderInference/kt42139.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt44241.kt")
|
||||
public void testKt44241() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inference/builderInference/kt44241.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt47052.kt")
|
||||
public void testKt47052() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inference/builderInference/kt47052.kt");
|
||||
|
||||
Generated
+10
@@ -12166,6 +12166,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/inference/builderInference/capturedTypes.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("constraintsBetweenTwoStubVariables.kt")
|
||||
public void testConstraintsBetweenTwoStubVariables() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inference/builderInference/constraintsBetweenTwoStubVariables.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt41164.kt")
|
||||
public void testKt41164() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inference/builderInference/kt41164.kt");
|
||||
@@ -12176,6 +12181,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/inference/builderInference/kt42139.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt44241.kt")
|
||||
public void testKt44241() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inference/builderInference/kt44241.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt47052.kt")
|
||||
public void testKt47052() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inference/builderInference/kt47052.kt");
|
||||
|
||||
Generated
+10
@@ -12231,6 +12231,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/inference/builderInference/capturedTypes.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("constraintsBetweenTwoStubVariables.kt")
|
||||
public void testConstraintsBetweenTwoStubVariables() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inference/builderInference/constraintsBetweenTwoStubVariables.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt41164.kt")
|
||||
public void testKt41164() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inference/builderInference/kt41164.kt");
|
||||
@@ -12241,6 +12246,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/inference/builderInference/kt42139.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt44241.kt")
|
||||
public void testKt44241() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inference/builderInference/kt44241.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt47052.kt")
|
||||
public void testKt47052() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inference/builderInference/kt47052.kt");
|
||||
|
||||
js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/wasm/semantics/IrCodegenBoxWasmTestGenerated.java
Generated
+10
@@ -6516,6 +6516,16 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inference/builderInference"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true);
|
||||
}
|
||||
|
||||
@TestMetadata("constraintsBetweenTwoStubVariables.kt")
|
||||
public void testConstraintsBetweenTwoStubVariables() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inference/builderInference/constraintsBetweenTwoStubVariables.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt44241.kt")
|
||||
public void testKt44241() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inference/builderInference/kt44241.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("substituteStubTypeIntolambdaParameterDescriptor.kt")
|
||||
public void testSubstituteStubTypeIntolambdaParameterDescriptor() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inference/builderInference/substituteStubTypeIntolambdaParameterDescriptor.kt");
|
||||
|
||||
Reference in New Issue
Block a user