Skip to content

adds modifierMode parameter to typeof#25815

Open
demotomohiro wants to merge 4 commits into
nim-lang:develfrom
demotomohiro:add-typeof-mode
Open

adds modifierMode parameter to typeof#25815
demotomohiro wants to merge 4 commits into
nim-lang:develfrom
demotomohiro:add-typeof-mode

Conversation

@demotomohiro
Copy link
Copy Markdown
Contributor

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 #25779 #25786

@demotomohiro demotomohiro changed the title Add typeof mode adds modifierMode parameter to typeof May 14, 2026
@demotomohiro demotomohiro marked this pull request as ready for review May 29, 2026 04:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant