Files
kotlin-fork/compiler/testData/ir/irJsText/dynamic/dynamicCall.kt
T
2022-06-02 13:47:33 +00:00

8 lines
302 B
Kotlin
Vendored

// FIR_IDENTICAL
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)