parent
3e83c4a168
commit
cd9290818a
1 changed files with 12 additions and 0 deletions
|
|
@ -144,3 +144,15 @@ block: # extractDocCommentsAndRunnables
|
||||||
|
|
||||||
proc c() {.checkComments("Hello world").} =
|
proc c() {.checkComments("Hello world").} =
|
||||||
## Hello world
|
## Hello world
|
||||||
|
|
||||||
|
block: # bug #19020
|
||||||
|
type
|
||||||
|
foo = object
|
||||||
|
|
||||||
|
template typ(T:typedesc) {.pragma.}
|
||||||
|
|
||||||
|
proc bar() {.typ: foo.} = discard
|
||||||
|
|
||||||
|
static:
|
||||||
|
doAssert $bar.getCustomPragmaVal(typ) == "foo"
|
||||||
|
doAssert $bar.getCustomPragmaVal(typ) == "foo"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue