mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-02 03:02:31 +00:00
Return an error symbol if the macro output has no type and a typedesc is expected. Fixes #7454
9 lines
118 B
Nim
9 lines
118 B
Nim
discard """
|
|
errormsg: "expression has no type:"
|
|
line: 8
|
|
"""
|
|
|
|
macro p(t: typedesc): typedesc =
|
|
discard
|
|
var a: p(int)
|