Introduce FIR_IDENTICAL for FIR vs old frontend tests #KT-36879 Fixed
This commit is contained in:
@@ -1,10 +0,0 @@
|
||||
val a1: Float = 1F
|
||||
val a2: Float = 1.0F
|
||||
val a3: Float = 1e-1F
|
||||
val a4: Float = 1.0e-1F
|
||||
|
||||
val b5: Float = 1f
|
||||
val b6: Float = 1.0f
|
||||
val b7: Float = 1e-1f
|
||||
val b8: Float = 1.0e-1f
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// FIR_IDENTICAL
|
||||
val a1: Float = 1F
|
||||
val a2: Float = 1.0F
|
||||
val a3: Float = 1e-1F
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
val zero = 0
|
||||
|
||||
fun test() {
|
||||
-0
|
||||
-0L
|
||||
-0.0
|
||||
-(1 - 1)
|
||||
-zero
|
||||
|
||||
+0
|
||||
}
|
||||
@@ -1,3 +1,4 @@
|
||||
// FIR_IDENTICAL
|
||||
val zero = 0
|
||||
|
||||
fun test() {
|
||||
|
||||
@@ -1,26 +0,0 @@
|
||||
fun fooInt(p: Int) = p
|
||||
fun fooLong(p: Long) = p
|
||||
fun fooByte(p: Byte) = p
|
||||
fun fooShort(p: Short) = p
|
||||
|
||||
fun test() {
|
||||
fooInt(1 + 1)
|
||||
fooByte(1 + 1)
|
||||
fooLong(1 + 1)
|
||||
fooShort(1 + 1)
|
||||
|
||||
fooInt(1 * 1)
|
||||
fooByte(1 * 1)
|
||||
fooLong(1 * 1)
|
||||
fooShort(1 * 1)
|
||||
|
||||
fooInt(1 / 1)
|
||||
fooByte(1 / 1)
|
||||
fooLong(1 / 1)
|
||||
fooShort(1 / 1)
|
||||
|
||||
fooInt(1 % 1)
|
||||
fooByte(1 % 1)
|
||||
fooLong(1 % 1)
|
||||
fooShort(1 % 1)
|
||||
}
|
||||
@@ -1,3 +1,4 @@
|
||||
// FIR_IDENTICAL
|
||||
fun fooInt(p: Int) = p
|
||||
fun fooLong(p: Long) = p
|
||||
fun fooByte(p: Byte) = p
|
||||
|
||||
-26
@@ -1,26 +0,0 @@
|
||||
fun fooInt(p: Int) = p
|
||||
fun fooLong(p: Long) = p
|
||||
fun fooByte(p: Byte) = p
|
||||
fun fooShort(p: Short) = p
|
||||
|
||||
fun test() {
|
||||
fooInt(1.plus(1))
|
||||
fooByte(1.plus(1))
|
||||
fooLong(1.plus(1))
|
||||
fooShort(1.plus(1))
|
||||
|
||||
fooInt(1.times(1))
|
||||
fooByte(1.times(1))
|
||||
fooLong(1.times(1))
|
||||
fooShort(1.times(1))
|
||||
|
||||
fooInt(1.div(1))
|
||||
fooByte(1.div(1))
|
||||
fooLong(1.div(1))
|
||||
fooShort(1.div(1))
|
||||
|
||||
fooInt(1.rem(1))
|
||||
fooByte(1.rem(1))
|
||||
fooLong(1.rem(1))
|
||||
fooShort(1.rem(1))
|
||||
}
|
||||
@@ -1,3 +1,4 @@
|
||||
// FIR_IDENTICAL
|
||||
fun fooInt(p: Int) = p
|
||||
fun fooLong(p: Long) = p
|
||||
fun fooByte(p: Byte) = p
|
||||
|
||||
Reference in New Issue
Block a user