mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-12 15:53:40 +00:00
9 lines
237 B
Kotlin
Vendored
9 lines
237 B
Kotlin
Vendored
// !CHECK_TYPE
|
|
|
|
fun foo(x: Number, y: String?): String {
|
|
val result = "abcde $x ${x as Int} ${y!!} $x $y"
|
|
checkSubtype<Int>(<!DEBUG_INFO_SMARTCAST!>x<!>)
|
|
checkSubtype<String>(<!DEBUG_INFO_SMARTCAST!>y<!>)
|
|
return result
|
|
}
|