warn about inconsistent spacing around binary operators; fixes #7582

This commit is contained in:
Andreas Rumpf 2018-05-05 14:58:33 +02:00
commit 1aa359febb
12 changed files with 28 additions and 27 deletions

View file

@ -846,7 +846,7 @@ proc checkCovariantParamsUsages(genericType: PType) =
if subType != nil:
subresult traverseSubTypes(subType)
if result:
error("non-invariant type param used in a proc type: " & $t)
error("non-invariant type param used in a proc type: " & $t)
of tySequence:
return traverseSubTypes(t[0])