From 66f18037b3d10dca7d32675651ec969217036992 Mon Sep 17 00:00:00 2001 From: Zahary Karadjov Date: Wed, 1 Apr 2020 04:45:44 +0300 Subject: [PATCH] Fix tests/types/tparameterizedparent0 --- compiler/semobjconstr.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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`.