* refs #17114: workaround for arm64 which should segfault but does not * fixup * Update lib/std/wrapnils.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
This commit is contained in:
parent
60929953cb
commit
bea037f856
2 changed files with 2 additions and 1 deletions
|
|
@ -13,6 +13,8 @@
|
|||
##
|
||||
## Tested on these OSes: Linux, Windows, OSX
|
||||
|
||||
# xxx possibly broken on arm64, see bug #17178
|
||||
|
||||
{.used.}
|
||||
|
||||
# do allocate memory upfront:
|
||||
|
|
|
|||
|
|
@ -24,7 +24,6 @@ runnableExamples:
|
|||
|
||||
assert (?.f2.x2.x2).x3 == nil # this terminates ?. early
|
||||
import std/segfaults # enable `NilAccessDefect` exceptions
|
||||
doAssertRaises(NilAccessDefect): echo (?.f2.x2.x2).x3[]
|
||||
|
||||
from std/options import Option, isSome, get, option, unsafeGet, UnpackDefect
|
||||
export options.get, options.isSome, options.isNone
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue