[FIR] Approximate all integer literals which resolved in independent mode
#KT-42016
This commit is contained in:
Vendored
+2
-2
@@ -1,7 +1,7 @@
|
||||
class Box<T>(val value: T)
|
||||
|
||||
fun box() : String {
|
||||
val b = Box<Long>(2 * 3)
|
||||
val b = Box<Long>(2l * 3)
|
||||
val expected: Long? = 6L
|
||||
return if (b.value == expected) "OK" else "fail"
|
||||
}
|
||||
}
|
||||
|
||||
Vendored
+2
-2
@@ -1,7 +1,7 @@
|
||||
class Box<T>(val value: T)
|
||||
|
||||
fun box() : String {
|
||||
val b = Box<Long>(x@ (1 + 2))
|
||||
val b = Box<Long>(x@ (1l + 2))
|
||||
val expected: Long? = 3L
|
||||
return if (b.value == expected) "OK" else "fail"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user