Files
Nim/tests/macros/t7454.nim
LemonBoy 52fc16d5d2 Return an error symbol as macro output if needed (#8116)
Return an error symbol if the macro output has no type and a typedesc
is expected.

Fixes #7454
2018-06-27 21:43:07 +02:00

9 lines
118 B
Nim

discard """
errormsg: "expression has no type:"
line: 8
"""
macro p(t: typedesc): typedesc =
discard
var a: p(int)