Skip to content

Commit 14ac21c

Browse files
authored
Fix assertion hit by unmanaged super calls (#1014)
1 parent 899e97a commit 14ac21c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5771,7 +5771,7 @@ export class Compiler extends DiagnosticEmitter {
57715771
),
57725772
Constraints.WILL_RETAIN
57735773
);
5774-
assert(this.skippedAutoreleases.has(theCall)); // guaranteed
5774+
assert(baseClassInstance.type.isUnmanaged || this.skippedAutoreleases.has(theCall)); // guaranteed
57755775
let stmts: ExpressionRef[] = [
57765776
module.local_set(thisLocal.index, theCall)
57775777
];

0 commit comments

Comments
 (0)