retain forced open undeclared ident information (#22019)

This commit is contained in:
metagn
2023-06-07 12:36:51 +03:00
committed by GitHub
parent fcc383d899
commit ce72b564bc
3 changed files with 21 additions and 5 deletions

View File

@@ -0,0 +1,17 @@
discard """
nimout: '''
mixin nothing, add
'''
"""
# issue #22012
import macros
expandMacros:
proc foo[T](): int =
# `nothing` is undeclared, `add` is declared
mixin nothing, add
123
doAssert foo[int]() == 123