treturnsempty.nim 161 B

123456789101112
  1. discard """
  2. errormsg: "type mismatch"
  3. line: 11
  4. """
  5. # bug #2372
  6. macro foo(dummy: int): untyped =
  7. discard
  8. proc takeStr(s: string) = echo s
  9. takeStr foo(12)