mirror of
https://github.com/nim-lang/Nim.git
synced 2026-06-05 03:14:08 +00:00
sigmatch: use boolean algebra
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user