On Thursday, 7 July 2016 at 12:24:08 UTC, Edwin van Leeuwen wrote:
On Thursday, 7 July 2016 at 10:33:39 UTC, Basile B. wrote:this compiles without error:struct Foo { int i; void bar() { void foo() const { i = 1; } foo; } }In this case "const" seems to be a noop. Do you think it's a bug ? Shouldn't "const" be applied, despite of foo() inaccessibility ?Is this related to: https://issues.dlang.org/show_bug.cgi?id=1983
I've opened a separate issue, it seems to be another case.