KT-27948: Properly coerce values when generating areEqual call

#KT-27948
This commit is contained in:
Dmitry Petrov
2018-11-06 15:25:01 +03:00
parent ac7cc0c08e
commit e14f74bc18
11 changed files with 145 additions and 11 deletions
@@ -21047,6 +21047,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/unsignedTypes/checkBasicUnsignedLiterals.kt");
}
@TestMetadata("equalsImplForInlineClassWrappingNullableInlineClass.kt")
public void testEqualsImplForInlineClassWrappingNullableInlineClass() throws Exception {
runTest("compiler/testData/codegen/box/unsignedTypes/equalsImplForInlineClassWrappingNullableInlineClass.kt");
}
@TestMetadata("forEachIndexedInListOfUInts.kt")
public void testForEachIndexedInListOfUInts() throws Exception {
runTest("compiler/testData/codegen/box/unsignedTypes/forEachIndexedInListOfUInts.kt");
@@ -21067,6 +21072,16 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/unsignedTypes/kt25784.kt");
}
@TestMetadata("literalEqualsNullableUnsigned.kt")
public void testLiteralEqualsNullableUnsigned() throws Exception {
runTest("compiler/testData/codegen/box/unsignedTypes/literalEqualsNullableUnsigned.kt");
}
@TestMetadata("nullableUnsignedEqualsLiteral.kt")
public void testNullableUnsignedEqualsLiteral() throws Exception {
runTest("compiler/testData/codegen/box/unsignedTypes/nullableUnsignedEqualsLiteral.kt");
}
@TestMetadata("signedToUnsignedLiteralConversion.kt")
public void testSignedToUnsignedLiteralConversion() throws Exception {
runTest("compiler/testData/codegen/box/unsignedTypes/signedToUnsignedLiteralConversion.kt");
@@ -22092,6 +22092,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/unsignedTypes/checkBasicUnsignedLiterals.kt");
}
@TestMetadata("equalsImplForInlineClassWrappingNullableInlineClass.kt")
public void testEqualsImplForInlineClassWrappingNullableInlineClass() throws Exception {
runTest("compiler/testData/codegen/box/unsignedTypes/equalsImplForInlineClassWrappingNullableInlineClass.kt");
}
@TestMetadata("forEachIndexedInListOfUInts.kt")
public void testForEachIndexedInListOfUInts() throws Exception {
runTest("compiler/testData/codegen/box/unsignedTypes/forEachIndexedInListOfUInts.kt");
@@ -22112,6 +22117,16 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/unsignedTypes/kt25784.kt");
}
@TestMetadata("literalEqualsNullableUnsigned.kt")
public void testLiteralEqualsNullableUnsigned() throws Exception {
runTest("compiler/testData/codegen/box/unsignedTypes/literalEqualsNullableUnsigned.kt");
}
@TestMetadata("nullableUnsignedEqualsLiteral.kt")
public void testNullableUnsignedEqualsLiteral() throws Exception {
runTest("compiler/testData/codegen/box/unsignedTypes/nullableUnsignedEqualsLiteral.kt");
}
@TestMetadata("signedToUnsignedLiteralConversion.kt")
public void testSignedToUnsignedLiteralConversion() throws Exception {
runTest("compiler/testData/codegen/box/unsignedTypes/signedToUnsignedLiteralConversion.kt");