Use specified comparison generator for chars in optimized ranges
Otherwise if Char value is a result of some erased generic call, coercing it to I (primitive int) causes CCE at run-time. #KT-23104 Fixed Target versions 1.2.40
This commit is contained in:
+6
@@ -16658,6 +16658,12 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("genericCharInRangeLiteral.kt")
|
||||
public void testGenericCharInRangeLiteral() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/ranges/contains/genericCharInRangeLiteral.kt");
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("inArray.kt")
|
||||
public void testInArray() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/ranges/contains/inArray.kt");
|
||||
|
||||
Reference in New Issue
Block a user