mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-17 00:21:28 +00:00
7 lines
285 B
Kotlin
Vendored
7 lines
285 B
Kotlin
Vendored
fun test1(d: dynamic) = d.member(1, 2, 3)
|
|
|
|
fun test2(d: dynamic) = d?.member(1, 2, 3)
|
|
|
|
// Named arguments in dynamic calls are ignored by JS back-end.
|
|
// If this becomes a compilation error, simply remove this particular test case.
|
|
fun test3(d: dynamic) = d.member(a = 1, b = 2, c = 3) |