Fix tests/types/tparameterizedparent0
This commit is contained in:
parent
08afa03075
commit
66f18037b3
1 changed files with 1 additions and 1 deletions
|
|
@ -336,7 +336,7 @@ proc semConstructTypeAux(c: PContext,
|
||||||
let base = t[0]
|
let base = t[0]
|
||||||
if base == nil: break
|
if base == nil: break
|
||||||
t = skipTypes(base, skipPtrs)
|
t = skipTypes(base, skipPtrs)
|
||||||
if t.kind == tyGenericParam:
|
if t.kind != tyObject:
|
||||||
# XXX: This is not supposed to happen, but apparently
|
# XXX: This is not supposed to happen, but apparently
|
||||||
# there are some issues in semtypinst. Luckily, it
|
# there are some issues in semtypinst. Luckily, it
|
||||||
# seems to affect only `computeRequiresInit`.
|
# seems to affect only `computeRequiresInit`.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue