Update the normalization unit test for the hoisted receiver

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Malte Ubl
2026-10-22 23:50:59 -07:00
co-authored by Claude Opus 5.5
parent 756a93a8f2
commit 604f647e30
@@ -458,9 +458,11 @@ test("normalizes base capsules before dispatching each derived member once", ()
});
expect(dispatch.body.filter((statement) => statement.kind === "if")).toHaveLength(2);
const normalize = liftedFns.find((helper) => helper.name === "%dyn.class.normalize")!;
// The capsule branch unboxes its receiver once, then tests each subclass.
expect(normalize.body[0]).toMatchObject({
kind: "if",
then: [
{ kind: "varDecl", init: { kind: "dynCheck", type: { kind: "object", className: "Base" } } },
{
kind: "if",
then: [