mirror of
https://github.com/nim-lang/Nim.git
synced 2026-06-14 23:53:47 +00:00
This PR adds 3 modes to `typeof` to specify how to handle type modifiers `var`, `sink` and `lent`. - typeOfModCompatible Remove or keep type modifiers in the same way as old typeof. That means keep `sink` but remove `var` and `lent`. - typeOfModRemoveModifier Remove type modifiers. - typeOfModKeepModifier Keep type modifiers. Related to https://github.com/nim-lang/Nim/pull/25779 https://github.com/nim-lang/Nim/issues/25786