KT-2275 fix: wrong coercion between nullable primitives

This commit is contained in:
Alex Tkachman
2012-08-06 09:25:20 +03:00
parent 2d63f6f970
commit 59d58648bd
4 changed files with 15 additions and 3 deletions
@@ -0,0 +1,6 @@
import java.util.HashMap
fun main(args: Array<String>) {
(0.toLong() as Number?)?.toByte()
(0 as Int?)?.toDouble()
}