fixes #22836; Unnecessary warning on 'options.none' with 'strictDefs'… (#22837)

… enabled

fixes #22836
This commit is contained in:
ringabout
2023-10-18 22:44:13 +08:00
committed by GitHub
parent 3c48af7ebe
commit 0d4b3ed18e

View File

@@ -152,7 +152,7 @@ proc none*(T: typedesc): Option[T] {.inline.} =
assert none(int).isNone
# the default is the none type
discard
result = Option[T]()
proc none*[T]: Option[T] {.inline.} =
## Alias for `none(T) <#none,typedesc>`_.