psi2ir: simple dynamic member calls

This commit is contained in:
Dmitry Petrov
2019-02-05 17:51:07 +03:00
parent ddb1ea2047
commit 3c8f52b436
13 changed files with 210 additions and 101 deletions
+7
View File
@@ -0,0 +1,7 @@
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)