Files
Nim/tests/pragmas/tpushuserpragma.nim
2025-04-03 12:53:42 +02:00

16 lines
283 B
Nim

# issue #24838
{.pragma: testit, raises: [], deprecated: "abc".}
{.push testit.}
proc xxx() {.testit.} =
discard "hello"
proc yyy() =
discard "hello"
{.pop.}
xxx() #[tt.Warning
^ abc; xxx is deprecated [Deprecated]]#
yyy() #[tt.Warning
^ abc; yyy is deprecated [Deprecated]]#