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

           Summary: 'TOK216' come in sight
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: major
          Priority: P2
         Component: druntime
        AssignedTo: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from [email protected] 2013-03-02 22:21:19 PST ---
did not work code follows:

import std.stdio;

class C{
    string str = "Hello,world!";
    @property string getter(){
        return str;
    }
    alias getter this;

}
void main(){
    auto c = new C;
    writeln(c);

}
:END
Error Description:

Declaration expected, not 'TOK216'
no identifier for declarator getter
semicolus expexted to close alias

:END

then,what is 'TOK216'?

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

Reply via email to