JS: prohibit illegal chars on dynamic call site

See KT-19540
This commit is contained in:
Alexey Andreev
2017-09-04 15:16:29 +03:00
parent 5a984a40e6
commit 28c9d274ec
4 changed files with 28 additions and 1 deletions
@@ -17,4 +17,9 @@ private class <!NAME_CONTAINS_ILLEGAL_CHARS!>` .private class `<!> {
val x: Int
<!NAME_CONTAINS_ILLEGAL_CHARS!>@JsName(".")
get()<!> = TODO("")
get()<!> = TODO("")
fun box(x: dynamic) {
x.<!NAME_CONTAINS_ILLEGAL_CHARS!>`foo-bar`<!>()
x.<!NAME_CONTAINS_ILLEGAL_CHARS!>`ba-z`<!>
}