mirror of
https://github.com/nim-lang/Nim.git
synced 2026-05-04 21:14:48 +00:00
iterable[T] (#17196)
* fix failing test toSeq in manual which now works * changelog * reject proc fn(a: iterable) * add iterable to spec * remove MCS/UFCS limitation that now works
This commit is contained in:
@@ -79,3 +79,9 @@ template whenVMorJs*(bodyIf, bodyElse) =
|
||||
else:
|
||||
when defined(js): bodyIf
|
||||
else: bodyElse
|
||||
|
||||
template accept*(a) =
|
||||
doAssert compiles(a)
|
||||
|
||||
template reject*(a) =
|
||||
doAssert not compiles(a)
|
||||
|
||||
Reference in New Issue
Block a user