[Issue 1983] Delegates violate const

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue May 24 05:38:35 UTC 2022


https://issues.dlang.org/show_bug.cgi?id=1983

Walter Bright <bugzilla at digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #33 from Walter Bright <bugzilla at digitalmars.com> ---
Changing writefln to writeln, let's try the opening example today:

---
test.d(19): Error: mutable method `test.A.x` is not callable using a `const`
`a`
---

where test.d(19) is the line:

    (&a.x)(2);

So the bug has been fixed at some point.

--


More information about the Digitalmars-d-bugs mailing list