Make unary minus and unary plus return int for byte and short

This commit is contained in:
Natalia Ukhorskaya
2013-12-19 17:42:28 +04:00
parent 802c1b772f
commit 4329c42e3f
23 changed files with 76 additions and 68 deletions
@@ -7,10 +7,16 @@ val p1 = -1
val p2 = -1.toLong()
// val p3: -1.toByte()
val p3 = -1.toByte()
val p3 = (-1).toByte()
// val p3a: -1.toInt()
val p3a =-1.toByte()
// val p4: -1.toInt()
val p4 = -1.toInt()
// val p5: -1.toShort()
val p5 = -1.toShort()
val p5 = (-1).toShort()
// val p5a: -1.toInt()
val p5a = -1.toShort()
@@ -25,16 +25,16 @@ val l3: Int = -1.toLong()
val l4: Short = -1.toLong()
// val b1: -1.toByte()
// val b1: -1.toInt()
val b1: Byte = -1.toByte()
// val b2: -1.toByte()
// val b2: -1.toInt()
val b2: Int = -1.toByte()
// val b3: -1.toByte()
// val b3: -1.toInt()
val b3: Long = -1.toByte()
// val b4: -1.toByte()
// val b4: -1.toInt()
val b4: Short = -1.toByte()
@@ -50,14 +50,14 @@ val i3: Long = -1.toInt()
// val i4: -1.toInt()
val i4: Short = -1.toInt()
// val s1: -1.toShort()
// val s1: -1.toInt()
val s1: Byte = -1.toShort()
// val s2: -1.toShort()
// val s2: -1.toInt()
val s2: Int = -1.toShort()
// val s3: -1.toShort()
// val s3: -1.toInt()
val s3: Long = -1.toShort()
// val s4: -1.toShort()
// val s4: -1.toInt()
val s4: Short = -1.toShort()