diff options
Diffstat (limited to 'tests/concepts/tmanual.nim')
-rw-r--r-- | tests/concepts/tmanual.nim | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/concepts/tmanual.nim b/tests/concepts/tmanual.nim index 243992aed..7cf08af06 100644 --- a/tests/concepts/tmanual.nim +++ b/tests/concepts/tmanual.nim @@ -12,7 +12,6 @@ e s t ''' - disabled: "true" """ template accept(e: expr) = @@ -22,10 +21,10 @@ template reject(e: expr) = static: assert(not compiles(e)) type - Container[T] = generic C - C.len is Ordinal + Container[T] = concept c + c.len is Ordinal items(c) is iterator - for value in C: + for value in c: type(value) is T proc takesIntContainer(c: Container[int]) = |