diff --git a/compiler/semobjconstr.nim b/compiler/semobjconstr.nim index eeec429006..682e744408 100644 --- a/compiler/semobjconstr.nim +++ b/compiler/semobjconstr.nim @@ -336,7 +336,7 @@ proc semConstructTypeAux(c: PContext, let base = t[0] if base == nil: break t = skipTypes(base, skipPtrs) - if t.kind == tyGenericParam: + if t.kind != tyObject: # XXX: This is not supposed to happen, but apparently # there are some issues in semtypinst. Luckily, it # seems to affect only `computeRequiresInit`.