fix regression in align (#12680)

* fix regression in align

* add test typesym without type
This commit is contained in:
Arne Döring 2019-11-19 09:58:47 +01:00 • committed by Andreas Rumpf
commit 03fa9a9041
4 changed files with 20 additions and 5 deletions

View file

@ -0,0 +1,14 @@
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)