[Issue 3958] mixin(non-static method) crashes compiler

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Mar 13 14:58:03 PST 2010


http://d.puremagic.com/issues/show_bug.cgi?id=3958


nfxjfg at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nfxjfg at gmail.com


--- Comment #1 from nfxjfg at gmail.com 2010-03-13 14:58:02 PST ---
There's another problem. This fails to compile:

struct S
{
    static string g() { return null; }
    void f() { mixin(g()); } //line 4
}

z.d(4): Error: argument to mixin must be a string, not (null)

(Tested with dmd v2.041.)

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list