mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-29 17:34:43 +00:00
13 lines
159 B
Nim
13 lines
159 B
Nim
discard """
|
|
errormsg: "type mismatch"
|
|
line: 11
|
|
"""
|
|
# bug #2372
|
|
macro foo(dummy: int): stmt =
|
|
discard
|
|
|
|
proc takeStr(s: string) = echo s
|
|
|
|
takeStr foo(12)
|
|
|