fix regression in align (#12680)
* fix regression in align * add test typesym without type
This commit is contained in:
parent
5278cf80eb
commit
03fa9a9041
4 changed files with 20 additions and 5 deletions
14
tests/macros/tinvalidtypesym.nim
Normal file
14
tests/macros/tinvalidtypesym.nim
Normal 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)
|
||||
Loading…
Add table
Add a link
Reference in a new issue