https://issues.dlang.org/show_bug.cgi?id=9792
Ali Cehreli <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #3 from Ali Cehreli <[email protected]> --- I ran into this in a post condition code: import std.algorithm; auto foo() out (result; result.length == 1) { // <-- ERROR return [ 0 ].sort; } void main() { } Error: mutable method `std.range.SortedRange!(int[], "a < b").SortedRange.length` is not callable using a `const` object Consider adding `const` or `inout` to std.range.SortedRange!(int[], "a < b").SortedRange.length Ali --
