mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-30 09:54:49 +00:00
12 lines
161 B
Nim
12 lines
161 B
Nim
discard """
|
|
errormsg: "type mismatch"
|
|
line: 11
|
|
"""
|
|
# bug #2372
|
|
macro foo(dummy: int): untyped =
|
|
discard
|
|
|
|
proc takeStr(s: string) = echo s
|
|
|
|
takeStr foo(12)
|