diff --git a/compiler/semgnrc.nim b/compiler/semgnrc.nim index cd0761c6b6..1d12ae970a 100644 --- a/compiler/semgnrc.nim +++ b/compiler/semgnrc.nim @@ -129,7 +129,7 @@ proc semGenericStmtSymbol(c: PContext, n: PNode, s: PSym, result.typ = nil onUse(n.info, s) of skParam: - if s.owner == c.p.owner or true: + if s.owner == c.p.owner: # Parameters of the routine currently being semchecked stay as local # identifiers result = n