[JS IR] Not cast to declaration parent in JsCodeOutlineLowering, use parent otherwise

^KT-45057 fixed
This commit is contained in:
Ilya Goncharov
2021-02-19 17:28:17 +03:00
parent bd2601f289
commit 187d4998fa
5 changed files with 42 additions and 1 deletions
+21
View File
@@ -0,0 +1,21 @@
// EXPECTED_REACHABLE_NODES: 1282
package foo
class A {
var ok: String
init {
var ok = "fail"
ok = js(
"""
ok = 'OK'
return ok
"""
)
this.ok = ok
}
}
fun box(): String {
return A().ok
}