diff options
-rw-r--r-- | compiler/semtypes.nim | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/semtypes.nim b/compiler/semtypes.nim index 25d8674b8..05a9d9882 100644 --- a/compiler/semtypes.nim +++ b/compiler/semtypes.nim @@ -1344,6 +1344,10 @@ proc semTypeClass(c: PContext, n: PNode, prev: PType): PType = dummyName = param dummyType = candidateTypeSlot + # this can be true for 'nim check' on incomplete concepts, + # see bug #8230 + if dummyName.kind == nkEmpty: continue + internalAssert c.config, dummyName.kind == nkIdent var dummyParam = newSym(if modifier == tyTypeDesc: skType else: skVar, dummyName.ident, owner, param.info) |