FIR: improve inference of implicit type arguments in casts
Type parameters do not necessarily match one-to-one, or preserve order.
This commit is contained in:
js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/es6/semantics/IrJsCodegenBoxES6TestGenerated.java
Generated
+5
@@ -26438,6 +26438,11 @@ public class IrJsCodegenBoxES6TestGenerated extends AbstractIrJsCodegenBoxES6Tes
|
||||
runTest("compiler/testData/codegen/box/when/implicitExhaustiveAndReturn.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inferredTypeParameters.kt")
|
||||
public void testInferredTypeParameters() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/when/inferredTypeParameters.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("integralWhenWithNoInlinedConstants.kt")
|
||||
public void testIntegralWhenWithNoInlinedConstants() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/when/integralWhenWithNoInlinedConstants.kt");
|
||||
|
||||
Generated
+5
@@ -26438,6 +26438,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/when/implicitExhaustiveAndReturn.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inferredTypeParameters.kt")
|
||||
public void testInferredTypeParameters() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/when/inferredTypeParameters.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("integralWhenWithNoInlinedConstants.kt")
|
||||
public void testIntegralWhenWithNoInlinedConstants() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/when/integralWhenWithNoInlinedConstants.kt");
|
||||
|
||||
Generated
+5
@@ -26403,6 +26403,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/when/implicitExhaustiveAndReturn.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inferredTypeParameters.kt")
|
||||
public void testInferredTypeParameters() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/when/inferredTypeParameters.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("integralWhenWithNoInlinedConstants.kt")
|
||||
public void testIntegralWhenWithNoInlinedConstants() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/when/integralWhenWithNoInlinedConstants.kt");
|
||||
|
||||
js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/wasm/semantics/IrCodegenBoxWasmTestGenerated.java
Generated
+5
@@ -14599,6 +14599,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
|
||||
runTest("compiler/testData/codegen/box/when/implicitExhaustiveAndReturn.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inferredTypeParameters.kt")
|
||||
public void testInferredTypeParameters() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/when/inferredTypeParameters.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt2457.kt")
|
||||
public void testKt2457() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/when/kt2457.kt");
|
||||
|
||||
Reference in New Issue
Block a user