mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-18 21:40:32 +00:00
* 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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user