Closed borisbrodski closed 9 years ago
I think this is the correct behavior as it is based on Java's equal semantics. You could easily fix this by writing:
#[].filter[true].toList => #[]
or
#[].filter[true].toList => empty
Besides changing this behavior would be a breaking API change which I would like to avoid.
Ok, I see.
Following spec throws an AssertionError
The exception:
Here
#[]
is of typeList<Object>
but#[].filter[true]
of typeIterable<Object>