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
typeIterable[T] =concept x
for value in x:
value is T
funcani[T](iter: Iterable[T]): bool=result=falsefor element in iter:
ifbool(element):
returntruediscardani([true, false])
$ nim c file.nim58758 lines; 1.440s; 76.566MiB peakmem; proj: file.nim; out: file [SuccessX]
$ nim cpp file.nim26606 lines; 0.397s; 32.035MiB peakmem; proj: file.nim; out: file [SuccessX]
$ nim js file.niminternal error: expr(nkBracketExpr, tyUserTypeClassInst)No stack traceback available
$
Reduced from a library that mimics some Python-like constructs,
works for C/CPP, but compiler crashes for JS targets.
The text was updated successfully, but these errors were encountered:
Reduced from a library that mimics some Python-like constructs,
works for C/CPP, but compiler crashes for JS targets.
The text was updated successfully, but these errors were encountered: