[JS IR BE] Fix constructor parent

This commit is contained in:
Roman Artemev
2018-08-23 19:24:35 +03:00
committed by romanart
parent 30a2058f74
commit 85a8af13cf
2 changed files with 3 additions and 0 deletions
@@ -103,6 +103,7 @@ class InnerClassesLowering(val context: BackendContext) : ClassLoweringPass {
newSymbol,
null
).apply {
parent = irConstructor.parent
returnType = irConstructor.returnType
}
@@ -464,6 +464,7 @@ internal class SuspendFunctionsLowering(val context: JsIrBackendContext): FileLo
origin = DECLARATION_ORIGIN_COROUTINE_IMPL,
symbol = symbol).apply {
parent = coroutineClass
returnType = coroutineClass.defaultType
this.valueParameters += constructorParameters
@@ -525,6 +526,7 @@ internal class SuspendFunctionsLowering(val context: JsIrBackendContext): FileLo
origin = DECLARATION_ORIGIN_COROUTINE_IMPL,
symbol = symbol).apply {
parent = coroutineClass
returnType = coroutineClass.defaultType
this.valueParameters += constructorParameters