You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
% nim -v
Nim Compiler Version 2.0.14 [MacOSX: arm64]
Compiled at 2025-01-06
Copyright (c) 2006-2023 by Andreas Rumpf
git hash: bf4de6a394e040d9810cba8c69fb2829ff04dcc6
active boot switches: -d:release
SIGSEGV: Illegal storage access. (Attempt to read from nil?)
zsh: segmentation fault nim c -r test
It works fine when doing ok on a separate line:
import results
type X[flag: staticbool] =object
l: intfuncinit(
T: typedesc[X],
a: openArray[int]): Opt[X[false]] =let res =X[false](l: a.len)
ok res
echo$X.init([1,3,3,7])
It also works fine when using std/options instead of results:
It works fine when doing
ok
on a separate line:It also works fine when using
std/options
instead ofresults
:It's broken on both refc and orc
--mm
s.The text was updated successfully, but these errors were encountered: