diff options
author | Zahary Karadjov <zahary@gmail.com> | 2020-04-01 04:45:44 +0300 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2020-04-01 19:38:44 +0200 |
commit | 66f18037b3d10dca7d32675651ec969217036992 (patch) | |
tree | b2c5e29f3653025e5659fdc682c1d59619782283 /compiler/semobjconstr.nim | |
parent | 08afa030756cd3209520f6db596605116bc246ac (diff) | |
download | Nim-66f18037b3d10dca7d32675651ec969217036992.tar.gz |
Fix tests/types/tparameterizedparent0
Diffstat (limited to 'compiler/semobjconstr.nim')
-rw-r--r-- | compiler/semobjconstr.nim | 2 |
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`. |