[JS IR BE] Merge native fixes into Ir Serializer
This commit is contained in:
+2
-3
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user