parent
26255c72fd
commit
6c8dee4180
2 changed files with 20 additions and 0 deletions
|
|
@ -23,3 +23,18 @@ checkType(voidProc(), "void")
|
|||
checkType(intProc(10, 20.0), "int")
|
||||
checkType(voidProc, "procTy")
|
||||
checkProcType(voidProc)
|
||||
|
||||
# bug #10548
|
||||
block:
|
||||
var c {.compileTime.} = 0
|
||||
|
||||
macro meshImpl(arg: typed): untyped =
|
||||
inc c
|
||||
result = arg
|
||||
|
||||
type
|
||||
Blub = int32
|
||||
Mesh = meshImpl(Club)
|
||||
Club = Blub
|
||||
|
||||
static: doAssert(c == 1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue