diff options
author | metagn <metagngn@gmail.com> | 2024-08-20 12:41:50 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-20 11:41:50 +0200 |
commit | 58813a3b2e375d91a307645168765372fb4584c8 (patch) | |
tree | c95b69503229b24c265ad93d782bd9856d4c7b4b /compiler/parser.nim | |
parent | a4dff1a03e514946b419fd9af0ac08b7a4b40a50 (diff) | |
download | Nim-58813a3b2e375d91a307645168765372fb4584c8.tar.gz |
make all generic aliases tyAlias (#23978)
fixes #23977 The problem is that for *any* body of a generic declaration, [semstmts](https://github.com/nim-lang/Nim/blob/2e4d344b43b040a4dce2c478ca13e49979e491fc/compiler/semstmts.nim#L1610-L1611) sets the sym of its value to the generic type name, and [semtypes](https://github.com/nim-lang/Nim/blob/2e4d344b43b040a4dce2c478ca13e49979e491fc/compiler/semtypes.nim#L2143) just directly gives the referenced type *specifically* when the expression is a generic body. I'm blaming `semtypes` here because it's responsible for the type given but the exact opposite behavior specifically written in makes me think generating an alias type here maybe breaks something.
Diffstat (limited to 'compiler/parser.nim')
0 files changed, 0 insertions, 0 deletions