[Issue 9638] New: 'TOK216' come in sight

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Mar 2 22:21:20 PST 2013


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: nobody at puremagic.com
        ReportedBy: hotcocoamix at gmail.com


--- Comment #0 from hotcocoamix at gmail.com 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: -------


More information about the Digitalmars-d-bugs mailing list