* fix #20996

* hopefully fix
This commit is contained in:
metagn 2022-12-04 22:37:23 +03:00 • committed by GitHub
commit 5536f74992
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 27 additions and 8 deletions

View file

@ -1389,7 +1389,7 @@ proc typeSectionRightSidePass(c: PContext, n: PNode) =
rawAddSon(s.typ, newTypeS(tyNone, c))
s.ast = a
inc c.inGenericContext
var body = semTypeNode(c, a[2], nil)
var body = semTypeNode(c, a[2], s.typ)
dec c.inGenericContext
if body != nil:
body.sym = s