mirror of
https://github.com/nim-lang/Nim.git
synced 2026-06-03 10:24:44 +00:00
Fix tests/types/tparameterizedparent0
This commit is contained in:
committed by
Andreas Rumpf
parent
08afa03075
commit
66f18037b3
@@ -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`.
|
||||
|
||||
Reference in New Issue
Block a user