Files
kotlin-fork/compiler/testData/ir/irText/js/dynamic/implicitCastFromDynamic.kt.txt
Sergej Jaskiewicz 17a8fd2c0b [test] Move irJsText tests to irText directory
So that all irText tests could be found in one place
2023-03-22 15:18:15 +00:00

25 lines
315 B
Kotlin
Vendored

val d: dynamic
field = 1
get
val p: Int
field = <get-d>() /*~> Int */
get
fun test1(d: dynamic): Int {
return d /*~> Int */
}
fun test2(d: dynamic): Any {
return d /*~> Any */
}
fun test3(d: dynamic): Any? {
return d
}
fun test4(d: dynamic): String {
return d.member(1, 2, 3) /*~> String */
}