summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--compiler/semobjconstr.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/semobjconstr.nim b/compiler/semobjconstr.nim
index eeec42900..682e74440 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`.