[JS IR BE] Merge native fixes into Ir Serializer

This commit is contained in:
Roman Artemev
2019-02-07 14:56:31 +03:00
committed by romanart
parent 813fef6f26
commit 862ccd05df
19 changed files with 5241 additions and 4767 deletions
@@ -210,9 +210,8 @@ fun IrConstructor.callsSuper(irBuiltIns: IrBuiltIns): Boolean {
assert(++numberOfCalls == 1) { "More than one delegating constructor call: ${symbol.owner}" }
val delegatingClass = expression.symbol.owner.parent as IrClass
// TODO: figure out why Lazy IR multiplies Declarations for descriptors and fix it
if (delegatingClass.descriptor == superClass.classifierOrFail.descriptor || (
delegatingClass.defaultType.isAny() && superClass.isAny()
))
// It happens because of IrBuiltIns whose IrDeclarations are different for runtime and test
if (delegatingClass.descriptor == superClass.classifierOrFail.descriptor)
callsSuper = true
else if (delegatingClass.descriptor != constructedClass.descriptor)
throw AssertionError(