You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Commit pushed to master at https://github.com/D-Programming-Language/dmdhttps://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`
Kenji Hara (@9rnsr) reported this on 2013-12-18T20:00:45Z
Transferred from https://issues.dlang.org/show_bug.cgi?id=11768
Description
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 }The text was updated successfully, but these errors were encountered: