From 424096f15b95163c40dafc8ba74c76851d46f575 Mon Sep 17 00:00:00 2001 From: Beatrice0377 <2296143245@qq.com> Date: Thu, 22 Oct 2026 12:07:14 +0800 Subject: [PATCH] test(verif): fix bug3676 symbolic port double-wrap --- tests/verif-bug3676-wire-reorder.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/verif-bug3676-wire-reorder.test.ts b/tests/verif-bug3676-wire-reorder.test.ts index e86f5d00b5..e19cad7a9c 100644 --- a/tests/verif-bug3676-wire-reorder.test.ts +++ b/tests/verif-bug3676-wire-reorder.test.ts @@ -43,7 +43,7 @@ function makeIdPort(ctx: Ctx) { return (...args: Array<{ kind: string }>): SymStr => { const key = args.map((a) => (a.kind === "str" ? String((a as { t?: { c?: string } }).t?.c ?? "?") : a.kind)).join("|"); let v = memo.get(key); - if (!v) { v = { kind: "str", t: strc(ctx, `id${n++}`) } as never; memo.set(key, v); } + if (!v) { v = strc(ctx, `id${n++}`); memo.set(key, v); } return v; }; } @@ -56,11 +56,11 @@ function makeCounterPorts(ctx: Ctx) { return { ClusterCounter: () => marker, __method_next: (recv: SymObj, base: SymStr): SymStr => { - if (recv !== marker) return { kind: "str", t: strc(ctx, "?") } as never; + if (recv !== marker) return strc(ctx, "?"); const c = (counts.get(marker) ?? 0) + 1; counts.set(marker, c); const b = String(base?.t?.c ?? "?"); - return { kind: "str", t: strc(ctx, c === 1 ? b : `${b}_${c - 1}`) } as never; + return strc(ctx, c === 1 ? b : `${b}_${c - 1}`); }, }; }