fluent-asserts icon indicating copy to clipboard operation
fluent-asserts copied to clipboard

Should fails when trying to compare std.container.array Ranges.

Open sybrandy opened this issue 4 years ago • 2 comments

Morning, It looks like Arrays (std.container.array) data types will cause test to not compile because the destructor is marked with @system. The error message looks similar to this:

@safe function ...should cannot call @system destructor std.container.array.Range(Array!string).RangeT.~this

Not sure what the correct solution is since there was an effort to make the code safe, but this is a valid range construct, so technically it should be supported. I personally have found the ability to compare ranges very useful since it provides diffs and therefore I personally would prefer it support all ranges.

sybrandy avatar May 06 '20 13:05 sybrandy