diff options
Diffstat (limited to 'compiler/sigmatch.nim')
-rw-r--r-- | compiler/sigmatch.nim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/sigmatch.nim b/compiler/sigmatch.nim index 591a7c2a2..61ccaaf90 100644 --- a/compiler/sigmatch.nim +++ b/compiler/sigmatch.nim @@ -807,7 +807,8 @@ proc tryResolvingStaticExpr(c: var TCandidate, n: PNode, # N is bound to a concrete value during the matching of the first param. # This proc is used to evaluate such static expressions. let instantiated = replaceTypesInBody(c.c, c.bindings, n, nil, - allowMetaTypes = allowUnresolved) + allowMetaTypes = allowUnresolved, + fromStaticExpr = true) result = c.c.semExpr(c.c, instantiated) proc inferStaticParam*(c: var TCandidate, lhs: PNode, rhs: BiggestInt): bool = |