https://issues.dlang.org/show_bug.cgi?id=20116
--- Comment #4 from Simen Kjaeraas <[email protected]> --- It's not just an interesting approach - it's the *right* approach. When you call the delegate, you don't pass it a context, so you can't decide whether the result should be const or immutable at that point - the constancy is set in stone the moment you create it, so that's when the type should be decided. Sadly, this would do nothing for issue 15651 - it's not creating a delegate from a struct or a class instance, so this change would have no impact whatsoever. 15651 is just a case where Unqual isn't doing all the things it perhaps should, or possibly a situation where inout simply breaks down. --
