JS: fix parsing of wrong delete operation in js function.
See KT-15294
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
|
||||
fun foo(x: Any) {
|
||||
js("delete x.foo;")
|
||||
js("delete x['bar'];")
|
||||
js("delete x.baz<!JSCODE_ERROR!>()<!>;")
|
||||
js("delete <!JSCODE_ERROR!>this<!>;")
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
package
|
||||
|
||||
public fun foo(/*0*/ x: kotlin.Any): kotlin.Unit
|
||||
Reference in New Issue
Block a user