[Issue 13079] Need 'this' to access member - function literal

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Jul 14 07:57:36 PDT 2014


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

hsteoh at quickfur.ath.cx changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hsteoh at quickfur.ath.cx

--- Comment #1 from hsteoh at quickfur.ath.cx ---
Are you sure that's valid syntax? Don't you mean this:
----
class Test {
    mixin(string func() {
        return "";
    });
}
----
The diagnostic should be improved, though. The current error message doesn't
make sense.

--


More information about the Digitalmars-d-bugs mailing list