removes 'x is iterator' special casing in the language

This commit is contained in:
Araq 2015-12-03 01:07:51 +01:00
commit 760242b870
10 changed files with 29 additions and 50 deletions

View file

@ -23,7 +23,7 @@ template reject(e: expr) =
type
Container[T] = concept c
c.len is Ordinal
items(c) is iterator
items(c) is T
for value in c:
type(value) is T