[TEST] Fix long literal in testdata broken in 4374c06
This commit is contained in:
Vendored
+1
-1
@@ -1,7 +1,7 @@
|
||||
class Box<T>(val value: T)
|
||||
|
||||
fun box() : String {
|
||||
val b = Box<Long>(2l * 3)
|
||||
val b = Box<Long>(2L * 3)
|
||||
val expected: Long? = 6L
|
||||
return if (b.value == expected) "OK" else "fail"
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -1,7 +1,7 @@
|
||||
class Box<T>(val value: T)
|
||||
|
||||
fun box() : String {
|
||||
val b = Box<Long>(x@ (1l + 2))
|
||||
val b = Box<Long>(x@ (1L + 2))
|
||||
val expected: Long? = 3L
|
||||
return if (b.value == expected) "OK" else "fail"
|
||||
}
|
||||
|
||||
+2
-2
@@ -5,9 +5,9 @@ fun <T> consumeLongAndMaterialize(x: Long): T = null as T
|
||||
fun consumeAny(x: Any) = x
|
||||
|
||||
fun main() {
|
||||
consumeAny(consumeLongAndMaterialize(3l * 1000))
|
||||
consumeAny(consumeLongAndMaterialize(3L * 1000))
|
||||
|
||||
if (true) {
|
||||
consumeLongAndMaterialize(3l * 1000)
|
||||
consumeLongAndMaterialize(3L * 1000)
|
||||
} else true
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
fun testSimple() = Box<Long>(2l * 3)
|
||||
fun testSimple() = Box<Long>(2L * 3)
|
||||
|
||||
inline fun <reified T> testArray(n: Int, crossinline block: () -> T): Array<T> {
|
||||
return Array<T>(n) { block() }
|
||||
|
||||
Reference in New Issue
Block a user