[K/N] Avoid creating fake overrides before setting class parent
This fixes a tests crash introduced in #KT-61366 fix.
This commit is contained in:
committed by
Space Team
parent
c88b4105c5
commit
71128e232e
+2
-1
@@ -1223,9 +1223,10 @@ private class ObjCBlockPointerValuePassing(
|
||||
+irReturn(callBlock(blockPointer, arguments))
|
||||
}
|
||||
|
||||
stubs.addKotlin(irClass)
|
||||
// we need to add class to stubs first, because it will implicitly initialize class parent.
|
||||
irClass.addFakeOverrides(stubs.typeSystem)
|
||||
|
||||
stubs.addKotlin(irClass)
|
||||
return constructor
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user