From 4a603f1268dace3e32e350c4dc039a74af53fe52 Mon Sep 17 00:00:00 2001 From: Alexander Udalov Date: Wed, 19 Feb 2014 19:26:02 +0400 Subject: [PATCH] Minor, specify types for clarity --- .../codegen/box/primitiveTypes/rangeTo.kt | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/compiler/testData/codegen/box/primitiveTypes/rangeTo.kt b/compiler/testData/codegen/box/primitiveTypes/rangeTo.kt index 6d3169ff90e..089d33c836c 100644 --- a/compiler/testData/codegen/box/primitiveTypes/rangeTo.kt +++ b/compiler/testData/codegen/box/primitiveTypes/rangeTo.kt @@ -1,12 +1,11 @@ fun box(): String { - // byte char short int long float double - val b = 42.toByte() - val c = 'z' - val s = 239.toShort() - val i = -1 - val j = -42L - val f = 3.14f - val d = -2.72 + val b: Byte = 42 + val c: Char = 'z' + val s: Short = 239 + val i: Int = -1 + val j: Long = -42L + val f: Float = 3.14f + val d: Double = -2.72 b.rangeTo(b) b rangeTo b