Nim/tests/macros/tinvalidtypesym.nim
Arne Döring 03fa9a9041 fix regression in align (#12680)
* fix regression in align

* add test typesym without type
2019-11-19 09:58:47 +01:00

14 lines
220 B
Nim

discard """
errormsg: "type expected, but symbol 'MyType' has no type."
"""
import macros
macro foobar(name) =
let sym = genSym(nskType, "MyType")
result = quote do:
type
`name` = `sym`
foobar(MyAlias)