diff --git a/compiler/sigmatch.nim b/compiler/sigmatch.nim index 19ceb61cac..7187103e57 100644 --- a/compiler/sigmatch.nim +++ b/compiler/sigmatch.nim @@ -1902,7 +1902,7 @@ proc userConvMatch(c: PContext, m: var TCandidate, f, a: PType, result = newDeref(result) inc(m.convMatches) - if m.genericConverter == false: + if not m.genericConverter: m.genericConverter = srca == isGeneric or destIsGeneric return result