diff --git a/compiler/testData/ir/irText/classes/kt43217.fir.kt.txt b/compiler/testData/ir/irText/classes/kt43217.fir.kt.txt index bd07aa4c60f..867a43b41d9 100644 --- a/compiler/testData/ir/irText/classes/kt43217.fir.kt.txt +++ b/compiler/testData/ir/irText/classes/kt43217.fir.kt.txt @@ -15,7 +15,7 @@ class A { } override operator fun get(): Double { - return 0.0D + return 0.0 } } @@ -34,7 +34,8 @@ class C : DoubleExpression { } override operator fun get(): Double { - return 0.0D + return 0.0 } } + diff --git a/compiler/testData/ir/irText/classes/kt43217.kt.txt b/compiler/testData/ir/irText/classes/kt43217.kt.txt index a094ba43c2d..9c1b3171d8e 100644 --- a/compiler/testData/ir/irText/classes/kt43217.kt.txt +++ b/compiler/testData/ir/irText/classes/kt43217.kt.txt @@ -15,7 +15,7 @@ class A { } override fun get(): Double { - return 0.0D + return 0.0 } } @@ -34,7 +34,7 @@ class C : DoubleExpression { } override fun get(): Double { - return 0.0D + return 0.0 } } diff --git a/compiler/testData/ir/irText/expressions/floatingPointComparisons/whenByFloatingPoint.fir.kt.txt b/compiler/testData/ir/irText/expressions/floatingPointComparisons/whenByFloatingPoint.fir.kt.txt index da3ff7b2233..a9f40419156 100644 --- a/compiler/testData/ir/irText/expressions/floatingPointComparisons/whenByFloatingPoint.fir.kt.txt +++ b/compiler/testData/ir/irText/expressions/floatingPointComparisons/whenByFloatingPoint.fir.kt.txt @@ -2,7 +2,7 @@ fun testSimple(x: Double): Int { return { // BLOCK val tmp0_subject: Double = x when { - ieee754equals(arg0 = tmp0_subject, arg1 = 0.0D) -> 0 + ieee754equals(arg0 = tmp0_subject, arg1 = 0.0) -> 0 else -> 1 } } @@ -15,7 +15,7 @@ fun testSmartCastInWhenSubject(x: Any): Int { return { // BLOCK val tmp1_subject: Double = x /*as Double */ when { - ieee754equals(arg0 = tmp1_subject, arg1 = 0.0D) -> 0 + ieee754equals(arg0 = tmp1_subject, arg1 = 0.0) -> 0 else -> 1 } } @@ -39,7 +39,7 @@ fun testSmartCastInWhenConditionInBranch(x: Any): Int { val tmp3_subject: Any = x when { tmp3_subject !is Double -> -1 - EQEQ(arg0 = tmp3_subject, arg1 = 0.0D) -> 0 + EQEQ(arg0 = tmp3_subject, arg1 = 0.0) -> 0 else -> 1 } } @@ -77,3 +77,4 @@ fun testWithPrematureExitInConditionSubexpression(x: Any): Int { } } } + diff --git a/compiler/testData/ir/irText/expressions/floatingPointComparisons/whenByFloatingPoint.kt.txt b/compiler/testData/ir/irText/expressions/floatingPointComparisons/whenByFloatingPoint.kt.txt index 841c8610186..61db3d39f9f 100644 --- a/compiler/testData/ir/irText/expressions/floatingPointComparisons/whenByFloatingPoint.kt.txt +++ b/compiler/testData/ir/irText/expressions/floatingPointComparisons/whenByFloatingPoint.kt.txt @@ -2,7 +2,7 @@ fun testSimple(x: Double): Int { return { // BLOCK val tmp0_subject: Double = x when { - ieee754equals(arg0 = tmp0_subject, arg1 = 0.0D) -> 0 + ieee754equals(arg0 = tmp0_subject, arg1 = 0.0) -> 0 else -> 1 } } @@ -15,7 +15,7 @@ fun testSmartCastInWhenSubject(x: Any): Int { return { // BLOCK val tmp0_subject: Any = x when { - ieee754equals(arg0 = tmp0_subject /*as Double */, arg1 = 0.0D) -> 0 + ieee754equals(arg0 = tmp0_subject /*as Double */, arg1 = 0.0) -> 0 else -> 1 } } @@ -39,7 +39,7 @@ fun testSmartCastInWhenConditionInBranch(x: Any): Int { val tmp0_subject: Any = x when { tmp0_subject is Double.not() -> -1 - ieee754equals(arg0 = tmp0_subject /*as Double */, arg1 = 0.0D) -> 0 + ieee754equals(arg0 = tmp0_subject /*as Double */, arg1 = 0.0) -> 0 else -> 1 } } diff --git a/compiler/testData/ir/irText/expressions/literals.fir.kt.txt b/compiler/testData/ir/irText/expressions/literals.fir.kt.txt index 253306edf33..a9c139c87af 100644 --- a/compiler/testData/ir/irText/expressions/literals.fir.kt.txt +++ b/compiler/testData/ir/irText/expressions/literals.fir.kt.txt @@ -31,11 +31,11 @@ val test8: Long get val test9: Double - field = 1.0D + field = 1.0 get val test10: Double - field = 1.0D.unaryMinus() + field = 1.0.unaryMinus() get val test11: Float @@ -65,3 +65,4 @@ val testI: Int val testL: Long field = 1L get + diff --git a/compiler/testData/ir/irText/expressions/literals.kt.txt b/compiler/testData/ir/irText/expressions/literals.kt.txt index 45e61a98908..db5b57cdd43 100644 --- a/compiler/testData/ir/irText/expressions/literals.kt.txt +++ b/compiler/testData/ir/irText/expressions/literals.kt.txt @@ -31,11 +31,11 @@ val test8: Long get val test9: Double - field = 1.0D + field = 1.0 get val test10: Double - field = -1.0D + field = -1.0 get val test11: Float diff --git a/compiler/testData/ir/irText/types/nullChecks/explicitEqualsAndCompareToCallsOnPlatformTypeReceiver.fir.kt.txt b/compiler/testData/ir/irText/types/nullChecks/explicitEqualsAndCompareToCallsOnPlatformTypeReceiver.fir.kt.txt index 32b0c63114c..4985c2b163c 100644 --- a/compiler/testData/ir/irText/types/nullChecks/explicitEqualsAndCompareToCallsOnPlatformTypeReceiver.fir.kt.txt +++ b/compiler/testData/ir/irText/types/nullChecks/explicitEqualsAndCompareToCallsOnPlatformTypeReceiver.fir.kt.txt @@ -3,11 +3,11 @@ fun JavaClass.testPlatformEqualsPlatform(): Boolean { } fun JavaClass.testPlatformEqualsKotlin(): Boolean { - return .null0().equals(other = 0.0D) + return .null0().equals(other = 0.0) } fun JavaClass.testKotlinEqualsPlatform(): Boolean { - return 0.0D.equals(other = .null0()) + return 0.0.equals(other = .null0()) } fun JavaClass.testPlatformCompareToPlatform(): Int { @@ -15,9 +15,10 @@ fun JavaClass.testPlatformCompareToPlatform(): Int { } fun JavaClass.testPlatformCompareToKotlin(): Int { - return .null0().compareTo(other = 0.0D) + return .null0().compareTo(other = 0.0) } fun JavaClass.testKotlinCompareToPlatform(): Int { - return 0.0D.compareTo(other = .null0() /*!! Double */) + return 0.0.compareTo(other = .null0() /*!! Double */) } + diff --git a/compiler/testData/ir/irText/types/nullChecks/explicitEqualsAndCompareToCallsOnPlatformTypeReceiver.kt.txt b/compiler/testData/ir/irText/types/nullChecks/explicitEqualsAndCompareToCallsOnPlatformTypeReceiver.kt.txt index a81b1bde5ee..2abfe883553 100644 --- a/compiler/testData/ir/irText/types/nullChecks/explicitEqualsAndCompareToCallsOnPlatformTypeReceiver.kt.txt +++ b/compiler/testData/ir/irText/types/nullChecks/explicitEqualsAndCompareToCallsOnPlatformTypeReceiver.kt.txt @@ -3,11 +3,11 @@ fun JavaClass.testPlatformEqualsPlatform(): Boolean { } fun JavaClass.testPlatformEqualsKotlin(): Boolean { - return .null0() /*!! Double */.equals(other = 0.0D) + return .null0() /*!! Double */.equals(other = 0.0) } fun JavaClass.testKotlinEqualsPlatform(): Boolean { - return 0.0D.equals(other = .null0()) + return 0.0.equals(other = .null0()) } fun JavaClass.testPlatformCompareToPlatform(): Int { @@ -15,10 +15,10 @@ fun JavaClass.testPlatformCompareToPlatform(): Int { } fun JavaClass.testPlatformCompareToKotlin(): Int { - return .null0() /*!! Double */.compareTo(other = 0.0D) + return .null0() /*!! Double */.compareTo(other = 0.0) } fun JavaClass.testKotlinCompareToPlatform(): Int { - return 0.0D.compareTo(other = .null0() /*!! Double */) + return 0.0.compareTo(other = .null0() /*!! Double */) }