From ceadf54d7649b8cc728fd0b6df966bbf28bf55bd Mon Sep 17 00:00:00 2001 From: Timothee Cour Date: Sun, 11 Apr 2021 07:25:41 -0500 Subject: 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 --- testament/lib/stdtest/testutils.nim | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'testament') diff --git a/testament/lib/stdtest/testutils.nim b/testament/lib/stdtest/testutils.nim index 58d136696..abffff24c 100644 --- a/testament/lib/stdtest/testutils.nim +++ b/testament/lib/stdtest/testutils.nim @@ -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) -- cgit 1.4.1-2-gfad0