https://issues.dlang.org/show_bug.cgi?id=11615
Basile-z <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |[email protected] Resolution|--- |WORKSFORME --- Comment #2 from Basile-z <[email protected]> --- I think this ER is nowadays invalid. You can use the `const` STC alone, which is like the `const auto` you wanted. struct Foo { int[] _arr = [0, 1, 2, 3, 4]; const arr() @property { return _arr; } pragma(msg, typeof(arr())); // const(int[]) } --
