summary refs log tree commit diff stats
path: root/tests/pragmas/tqualifiedmacro.nim
blob: bc95ec1ea59824ee1331e473b967bc5d26923c07 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
discard """
  output: '''
template t
'''
"""

# issue #12696

import mqualifiedmacro
proc p() {. mqualifiedmacro.t .} = # errors with identifier expected but a.t found
  echo "proc p"

type Foo {. mqualifiedmacro.m("Bar") .} = object
doAssert Bar is object