summary refs log tree commit diff stats
path: root/tests/macros/tgetimpl.nim
blob: d384929346bae28876f52ee6891d1f15c076a2f8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
discard """
  msg: '''"muhaha"
proc poo(x, y: int) =
  echo ["poo"]'''
"""

import macros

const
  foo = "muhaha"

proc poo(x, y: int) =
  echo "poo"

macro m(x: typed): untyped =
  echo repr x.symbol.getImpl
  result = x

discard m foo
discard m poo