Fix tests/types/tparameterizedparent0

This commit is contained in:
Zahary Karadjov
2020-04-01 04:45:44 +03:00
committed by Andreas Rumpf
parent 08afa03075
commit 66f18037b3

View File

@@ -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`.