mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 08:31:26 +00:00
tests added
This commit is contained in:
committed by
Alexander Udalov
parent
e53e4fe257
commit
0f5e29df9b
@@ -0,0 +1,14 @@
|
||||
|
||||
fun bar() {
|
||||
var x : Object? = java.lang.Integer.valueOf(1) as Object?
|
||||
|
||||
val y1 : Int = (x as Int?)!!
|
||||
|
||||
x = java.lang.Long.valueOf(1) as Object?
|
||||
|
||||
val y2 : Long = (x as Long?)!!
|
||||
}
|
||||
|
||||
// 2 valueOf
|
||||
// 1 intValue
|
||||
// 1 longValue
|
||||
Reference in New Issue
Block a user