summary refs log tree commit diff stats
path: root/compiler/semobjconstr.nim
diff options
context:
space:
mode:
authorZahary Karadjov <zahary@gmail.com>2020-04-01 04:45:44 +0300
committerAndreas Rumpf <rumpf_a@web.de>2020-04-01 19:38:44 +0200
commit66f18037b3d10dca7d32675651ec969217036992 (patch)
treeb2c5e29f3653025e5659fdc682c1d59619782283 /compiler/semobjconstr.nim
parent08afa030756cd3209520f6db596605116bc246ac (diff)
downloadNim-66f18037b3d10dca7d32675651ec969217036992.tar.gz
Fix tests/types/tparameterizedparent0
Diffstat (limited to 'compiler/semobjconstr.nim')
-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`.