mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-19 22:10:33 +00:00
… enabled fixes #22836
This commit is contained in:
@@ -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>`_.
|
||||
|
||||
Reference in New Issue
Block a user