11 lines
161 B
Nim
11 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)
|