From 85971405abff0f92f2981d54c79eaa70f4400a6c Mon Sep 17 00:00:00 2001 From: ringabout <43030857+ringabout@users.noreply.github.com> Date: Fri, 14 Aug 2026 12:00:39 +0800 Subject: [PATCH] progress --- compiler/aliases.nim | 2 +- tests/ccgbugs/t26104.nim | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/aliases.nim b/compiler/aliases.nim index 19c06c20d6..639367b9b6 100644 --- a/compiler/aliases.nim +++ b/compiler/aliases.nim @@ -28,7 +28,7 @@ type proc isCompileTimeOnlyNode(n: PNode): bool {.inline.} = ## `typeof` and typedesc/static values describe types at compile time; they ## do not read the runtime location that alias analysis is protecting. - n.kind == nkTypeOfExpr or (n.typ != nil and n.typ.containsCompileTimeOnly) + n.kind == nkTypeOfExpr or (n.typ != nil and n.typ.isCompileTimeOnly) func sameLocation(a, b: PNode): bool = template sameConstIndex(a, b: PNode): bool = diff --git a/tests/ccgbugs/t26104.nim b/tests/ccgbugs/t26104.nim index 45253a3dce..53a3550b18 100644 --- a/tests/ccgbugs/t26104.nim +++ b/tests/ccgbugs/t26104.nim @@ -1,6 +1,6 @@ discard """ action: compile - ccodeCheck: "@'f_.*((*Result).f)' .*" + ccodeCheck: "@'((*Result).f);' .*" """ # bug #26104: a compile-time-only `typeof` argument was treated as a runtime