diff options
author | Timothee Cour <timothee.cour2@gmail.com> | 2021-06-09 22:00:34 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-10 07:00:34 +0200 |
commit | 79ded694d7f913755dc7261c7468f04fe421e0b3 (patch) | |
tree | 04828fcedc4e41dc1fbb1199b43d5d0ee0ccede7 /lib/std/wrapnils.nim | |
parent | 19918ceb2b099440cd3e43b6d7fff313de6a84a2 (diff) | |
download | Nim-79ded694d7f913755dc7261c7468f04fe421e0b3.tar.gz |
avoid re-exporting options from std/wrapnils (#18222)
Diffstat (limited to 'lib/std/wrapnils.nim')
-rw-r--r-- | lib/std/wrapnils.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/wrapnils.nim b/lib/std/wrapnils.nim index 708faf4cf..ed0a79d79 100644 --- a/lib/std/wrapnils.nim +++ b/lib/std/wrapnils.nim @@ -25,7 +25,6 @@ runnableExamples: assert (?.f2.x2.x2).x3 == nil # this terminates ?. early from options import Option, isSome, get, option, unsafeGet, UnpackDefect -export options.get, options.isSome, options.isNone template fakeDot*(a: Option, b): untyped = ## See top-level example. @@ -90,6 +89,7 @@ macro `?.`*(a: untyped): auto = macro `??.`*(a: untyped): Option = ## Same as `?.` but returns an `Option`. runnableExamples: + import std/options type Foo = ref object x1: ref int x2: int |