mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-14 23:33:28 +00:00
@@ -144,3 +144,15 @@ block: # extractDocCommentsAndRunnables
|
||||
|
||||
proc c() {.checkComments("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"
|
||||
|
||||
Reference in New Issue
Block a user