https://issues.dlang.org/show_bug.cgi?id=19211
Basile-z <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |INVALID --- Comment #2 from Basile-z <[email protected]> --- let's close. one can do, instead of using &func1 which is contaminated by transitive const. --- struct Foo { void func1(){} void func2() const {alias Fun = typeof(&(new Foo).func1);} } --- The problem pointed by the original report is more that people don't understand how `const` works, i.e in a `const` function, `this` becomes `const` and is propagated by transitivity, which is even something I pointed in a blog post in after reporting. --
