diff options
author | cooldome <ariabushenko@gmail.com> | 2020-11-06 09:25:43 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-06 10:25:43 +0100 |
commit | cdd459dd60e7cf69868ac23e754e8047df6afddc (patch) | |
tree | 90fe3661366a470eccdc3f8b02738f3a1ac6fe80 /compiler | |
parent | fa5f225efc7161110b0d4cf57e86646f2b0d97f8 (diff) | |
download | Nim-cdd459dd60e7cf69868ac23e754e8047df6afddc.tar.gz |
static[T] related fixes (#15853)
* close #9679 * close #7546 * close #9520 * close #6177
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/semtypes.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/semtypes.nim b/compiler/semtypes.nim index 21667895a..467645aee 100644 --- a/compiler/semtypes.nim +++ b/compiler/semtypes.nim @@ -159,7 +159,7 @@ proc semSet(c: PContext, n: PNode, prev: PType): PType = var base = semTypeNode(c, n[1], nil) addSonSkipIntLit(result, base, c.idgen) if base.kind in {tyGenericInst, tyAlias, tySink}: base = lastSon(base) - if base.kind != tyGenericParam: + if base.kind notin {tyGenericParam, tyGenericInvocation}: if not isOrdinalType(base, allowEnumWithHoles = true): localError(c.config, n.info, errOrdinalTypeExpected) elif lengthOrd(c.config, base) > MaxSetElements: |