Files
Nim/compiler
metagn ed9e3cba07 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.
2023-09-07 05:30:37 +02:00
..
2022-09-27 10:57:47 +02:00
2017-01-07 22:35:09 +01:00
2023-08-19 21:04:25 +02:00
2023-08-25 06:48:08 +02:00
2023-05-06 21:27:28 +02:00
2023-08-06 14:26:21 +02:00
2021-01-12 09:36:51 +01:00
2023-08-06 14:26:21 +02:00
2022-03-23 20:34:53 +01:00
2023-07-02 22:36:05 +02:00
2023-08-25 06:48:08 +02:00
2023-08-06 14:26:21 +02:00
2023-08-25 06:48:08 +02:00

Nim Compiler

  • This directory contains the Nim compiler written in Nim.
  • Note that this code has been translated from a bootstrapping version written in Pascal.
  • So the code is not a poster child of good Nim code.

See Internals of the Nim Compiler for more information.