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:
+6
@@ -37312,6 +37312,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
runTest("compiler/testData/codegen/box/when/implicitExhaustiveAndReturn.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inferredTypeParameters.kt")
|
||||
public void testInferredTypeParameters() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/when/inferredTypeParameters.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("integralWhenWithNoInlinedConstants.kt")
|
||||
public void testIntegralWhenWithNoInlinedConstants() throws Exception {
|
||||
|
||||
+6
@@ -37112,6 +37112,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
||||
runTest("compiler/testData/codegen/box/when/implicitExhaustiveAndReturn.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inferredTypeParameters.kt")
|
||||
public void testInferredTypeParameters() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/when/inferredTypeParameters.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("integralWhenWithNoInlinedConstants.kt")
|
||||
public void testIntegralWhenWithNoInlinedConstants() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user