https://issues.dlang.org/show_bug.cgi?id=21203 --- Comment #2 from Manu <turkeyman at gmail.com> --- And I missed the most important one: void fun(const(ScopedClass!MyClass)*); // mangles const MyClass* That's the money shot! (I wish you could edit in bugzilla!!!) --