https://issues.dlang.org/show_bug.cgi?id=9792
Ali Cehreli <acehr...@yahoo.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |acehr...@yahoo.com --- Comment #3 from Ali Cehreli <acehr...@yahoo.com> --- 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 --