This commit is contained in:
Araq 2020-03-16 12:54:31 +01:00 • committed by Andreas Rumpf
commit a102eb5ef6
3 changed files with 34 additions and 6 deletions

View file

@ -618,6 +618,9 @@ proc replaceTypeVarsTAux(cl: var TReplTypeVars, t: PType): PType =
eraseVoidParams(result)
skipIntLiteralParams(result)
of tyRange:
result[0] = result[0].skipTypes({tyStatic, tyDistinct})
else: discard
else:
# If this type doesn't refer to a generic type we may still want to run it