diff options
Diffstat (limited to 'compiler/semtypinst.nim')
-rw-r--r-- | compiler/semtypinst.nim | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/semtypinst.nim b/compiler/semtypinst.nim index d3ab9d866..5aec3eed9 100644 --- a/compiler/semtypinst.nim +++ b/compiler/semtypinst.nim @@ -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 |