[Issue 14262] [REG] [2.067-b3] Can't use class `this` as ref argument

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Mar 9 03:02:59 PDT 2015


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

Walter Bright <bugzilla at digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla at digitalmars.com

--- Comment #1 from Walter Bright <bugzilla at digitalmars.com> ---
A simpler example:

---
void foo(const ref A a);

class A {
    void bar() {
        foo(this);
    }
}
---

I don't see why this shouldn't compile.

--


More information about the Digitalmars-d-bugs mailing list