This commit is contained in:
ringabout
2026-08-14 12:00:39 +08:00
parent b2bab45e23
commit 85971405ab
2 changed files with 2 additions and 2 deletions

View File

@@ -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 =

View File

@@ -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