diff options
author | metagn <metagngn@gmail.com> | 2023-09-07 06:30:37 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-07 05:30:37 +0200 |
commit | ed9e3cba07c9d03714b4ea22e50dcc7e706e0bed (patch) | |
tree | 349bed3019983c150279928804fed01149a73f12 /.github | |
parent | b9f039e0c39c8f4e10ebdbe77e9a91f2595e1cbe (diff) | |
download | Nim-ed9e3cba07c9d03714b4ea22e50dcc7e706e0bed.tar.gz |
make getType nodes of generic insts have full inst type (#22655)
fixes #22639 for the third time Nodes generated by `getType` for `tyGenericInst` types, instead of having the original `tyGenericInst` type, will have the type of the last child (due to the `mapTypeToAst` calls which set the type to the given argument). This will cause subsequent `getType` calls to lose information and think it's OK to use the sym of the instantiated type rather than fully expand the generic instantiation. To prevent this, update the type of the node from the `mapTypeToAst` calls to the full generic instantiation type.
Diffstat (limited to '.github')
0 files changed, 0 insertions, 0 deletions