Currently inout(const(T)) should become const(T). Test case: void test1(inout int = 0) { const(inout(char)) k1; inout(const(char)) k2; static assert(typeof(k1).stringof == "const(char)"); // OK static assert(typeof(k2).stringof == "const(char)"); // fails static assert(is(typeof(k1) == typeof(k2))); // fails }
https://github.com/D-Programming-Language/dmd/pull/2987
Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/09448ff6c3d1a273444983cf94f9b07ff70d112d fix Issue 11768 - inconsistent behavior of type qualifier inout + const Fix up `Parser::parseBasicType` by using `Type::addSTC`
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/18740 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB