Render deprecated pragmas (#8886)
* Render deprecated pragmas * fix the expected html * clean up the documentation regarding deprecations * fix typo * fix system.nim * fix random
This commit is contained in:
parent
64518380a5
commit
7d217a71d3
21 changed files with 180 additions and 117 deletions
|
|
@ -18,6 +18,14 @@ template foo*(a, b: SomeType) =
|
|||
proc bar*[T](a, b: T): T =
|
||||
result = a + b
|
||||
|
||||
proc baz*[T](a, b: T): T {.deprecated.} =
|
||||
## This is deprecated without message.
|
||||
result = a + b
|
||||
|
||||
proc buzz*[T](a, b: T): T {.deprecated: "since v0.20".} =
|
||||
## This is deprecated with a message.
|
||||
result = a + b
|
||||
|
||||
import std/macros
|
||||
|
||||
macro bar*(): untyped =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue