[JS IR BE] Properly handle primary constructors

- force primary constructor to be created by codegen
 - make sure initializer is invoked once in primary constructor
 - make one of coroutine constructor primary
 - remove hack from codegen
This commit is contained in:
Roman Artemev
2019-07-09 16:53:29 +03:00
committed by romanart
parent a112345418
commit 6ab46204cb
5 changed files with 73 additions and 15 deletions
@@ -392,7 +392,7 @@ abstract class AbstractSuspendFunctionsLowering<C : CommonBackendContext>(val co
coroutineClass.defaultType,
isInline = false,
isExternal = false,
isPrimary = false
isPrimary = true
).apply {
d.bind(this)
parent = coroutineClass