diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2015-02-21 15:21:48 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2015-02-21 15:21:48 +0100 |
commit | c3244ef1ffa0a787f3a3a2d2b0cd20db52072f9a (patch) | |
tree | b655d8f7762363880bfc72d453bdfbe2559b830b | |
parent | 77406dd59c6e3afc66903227d50ae3b54d4a7540 (diff) | |
parent | 3a8455fd8ffede3a58a4da5437d0135bdf833486 (diff) | |
download | Nim-c3244ef1ffa0a787f3a3a2d2b0cd20db52072f9a.tar.gz |
Merge pull request #2189 from Varriount/param-uint-ranges
Allow ranges with unsigned integer ordinals to be used as parameter types
-rw-r--r-- | compiler/types.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/types.nim b/compiler/types.nim index 0f156f7bd..5c3be7553 100644 --- a/compiler/types.nim +++ b/compiler/types.nim @@ -1100,7 +1100,7 @@ proc typeAllowedAux(marker: var IntSet, typ: PType, kind: TSymKind, result = typeAllowedAux(marker, lastSon(t), kind, flags) of tyRange: if skipTypes(t.sons[0], abstractInst-{tyTypeDesc}).kind notin - {tyChar, tyEnum, tyInt..tyFloat128}: result = t + {tyChar, tyEnum, tyInt..tyFloat128, tyUInt8..tyUInt32}: result = t of tyOpenArray, tyVarargs: if kind != skParam: result = t else: result = typeAllowedAux(marker, t.sons[0], skVar, flags) |