parent
eec239e851
commit
584d778318
2 changed files with 11 additions and 2 deletions
|
|
@ -137,4 +137,12 @@ block:
|
|||
static:
|
||||
assert hasIntSerKey
|
||||
assert strSerKey == "string"
|
||||
assert nestedItemDefVal == "Nimmers of the world, unite!"
|
||||
assert nestedItemDefVal == "Nimmers of the world, unite!"
|
||||
|
||||
block:
|
||||
template simpleAttr {.pragma.}
|
||||
|
||||
type Annotated {.simpleAttr.} = object
|
||||
|
||||
proc generic_proc[T]() =
|
||||
assert Annotated.hasCustomPragma(simpleAttr)
|
||||
Loading…
Add table
Add a link
Reference in a new issue