[JS IR] Not cast to declaration parent in JsCodeOutlineLowering, use parent otherwise
^KT-45057 fixed
This commit is contained in:
+21
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user