diff --git a/compiler/testData/codegen/box/secondaryConstructors/clashingDefaultConstructors.kt b/compiler/testData/codegen/box/secondaryConstructors/clashingDefaultConstructors.kt index 5927dc84bee..bad07d0d16b 100644 --- a/compiler/testData/codegen/box/secondaryConstructors/clashingDefaultConstructors.kt +++ b/compiler/testData/codegen/box/secondaryConstructors/clashingDefaultConstructors.kt @@ -26,8 +26,8 @@ fun box(): String { val b2 = B("hij", "klm", 2).toString() if (b2 != "hij#klm2") return "fail5: $b2" - val b3 = B(123.0).toString() - if (b3 != "123.0#efg") return "fail6: $b3" + val b3 = B(123.1).toString() + if (b3 != "123.1#efg") return "fail6: $b3" val b4 = B(x="test").toString() if (b4 != "test#123") return "fail7: $b4" diff --git a/compiler/testData/codegen/box/secondaryConstructors/defaultArgs.kt b/compiler/testData/codegen/box/secondaryConstructors/defaultArgs.kt index a7984976b0e..3c9d312462e 100644 --- a/compiler/testData/codegen/box/secondaryConstructors/defaultArgs.kt +++ b/compiler/testData/codegen/box/secondaryConstructors/defaultArgs.kt @@ -23,12 +23,12 @@ fun box(): String { val a4 = A("A", arg2=123) if (a4.prop != "A#123") return "fail4: ${a4.prop}" - val a5 = A(argDouble=23.0) - if (a5.prop != "OK#23.0#1") return "fail5: ${a5.prop}" - val a6 = A("A", argDouble=23.0) - if (a6.prop != "A#23.0#1") return "fail6: ${a6.prop}" - val a7 = A("A", arg3=2L, argDouble=23.0) - if (a7.prop != "A#23.0#2") return "fail7: ${a7.prop}" + val a5 = A(argDouble=23.1) + if (a5.prop != "OK#23.1#1") return "fail5: ${a5.prop}" + val a6 = A("A", argDouble=23.1) + if (a6.prop != "A#23.1#1") return "fail6: ${a6.prop}" + val a7 = A("A", arg3=2L, argDouble=23.1) + if (a7.prop != "A#23.1#2") return "fail7: ${a7.prop}" return "OK" }