summary refs log blame commit diff stats
path: root/tests/macros/tgetimpl.nim
blob: d384929346bae28876f52ee6891d1f15c076a2f8 (plain) (tree)



















                            
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