mirror of
https://github.com/nim-lang/Nim.git
synced 2026-08-14 11:04:34 +00:00
progress
This commit is contained in:
@@ -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 =
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user