Do not generate non-standard compareTo as primitive comparison in all backends
Previous changes related to this in the old JVM backend were in582b1c5e66and0482f7e9c5, but they did not affect the `ProperIeee754Comparisons` mode which became the default in 1.4.0. As a result, we had a regression here. Since the `PRIMITIVE_NUMERIC_COMPARISON_INFO` slice is used in psi2ir to determine how to generate the comparison, this fixes the regression both in the old JVM backend, and in all IR backends. #KT-41426 Fixed
This commit is contained in:
+5
@@ -20516,6 +20516,11 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
runTest("compiler/testData/codegen/box/operatorConventions/compareTo/comparable.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("customCompareTo.kt")
|
||||
public void testCustomCompareTo() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/operatorConventions/compareTo/customCompareTo.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("doubleInt.kt")
|
||||
public void testDoubleInt() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/operatorConventions/compareTo/doubleInt.kt");
|
||||
|
||||
Reference in New Issue
Block a user