Attempt to split long or double on the stack exception

#KT-3042 Fixed
This commit is contained in:
Natalia.Ukhorskaya
2012-11-20 13:35:30 +04:00
parent 900788a8e0
commit 3fc2e5d20c
7 changed files with 150 additions and 1 deletions
@@ -0,0 +1,11 @@
fun box(): String {
var a: Int
a = 12
fun f() {
foo(a)
}
return "OK"
}
fun foo(l: Int) {}
@@ -0,0 +1,13 @@
//KT-3042 Attempt to split long or double on the stack excepion
fun box(): String {
var a: Long
a = 12.toLong()
fun f() {
foo(a)
}
return "OK"
}
fun foo(l: Long) {}