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


Kenji Hara <k.hara...@gmail.com> changed:

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


--- Comment #1 from Kenji Hara <k.hara...@gmail.com> 2011-10-23 02:32:51 PDT ---
This is sample-code bug.

import std.stdio;
struct F
{
    int[] g;
    alias g this;

    auto ptr()
    {
        write("ptr\n");  // print before return
        return g.ptr;
    }
}
void main()
{
    F a;
    auto p = a.ptr;
}

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

Reply via email to