We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e3caf4 commit 095f1deCopy full SHA for 095f1de
compiler/semtypes.nim
@@ -2049,7 +2049,8 @@ proc semTypeIdent(c: PContext, n: PNode): PSym =
2049
# proc signature for example
2050
if c.inGenericInst > 0:
2051
let bound = result.typ.elementType.sym
2052
- if bound != nil: return bound
+ if bound != nil and bound.typ == result.typ.elementType:
2053
+ return bound
2054
return result
2055
if result.typ.sym == nil:
2056
localError(c.config, n.info, errTypeExpected)
0 commit comments