www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 9638] New: 'TOK216' come in sight

reply d-bugmail puremagic.com writes:
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 puremagic.com
        ReportedBy: hotcocoamix gmail.com


--- Comment #0 from hotcocoamix 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: -------
Mar 02 2013
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9638


Andrej Mitrovic <andrej.mitrovich gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrej.mitrovich gmail.com


--- Comment #1 from Andrej Mitrovic <andrej.mitrovich gmail.com> 2013-03-02
23:04:06 PST ---
Which version of the compiler? I can't recreate this in 2.063 head, 2.062,
2.061, 2.060, 2.059.

And are you sure the test-case is right?

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 02 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9638



--- Comment #2 from hotcocoamix gmail.com 2013-03-02 23:26:26 PST ---
I tested in dmd2.062 .
But DPaste compiler hasnt say error,
I'm not sure about this bug.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 02 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9638



--- Comment #3 from Andrej Mitrovic <andrej.mitrovich gmail.com> 2013-03-02
23:40:44 PST ---
Token 216 does not exist though, I don't know why that would be emitted. Did
you use try a clean 2.062 installation? Otherwise if you're building from
source you should do a clean build first.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 02 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9638



--- Comment #4 from hotcocoamix gmail.com 2013-03-02 23:52:51 PST ---
I am sorry,
I tried uninstalling & installing dmd2.062,
the bug doesnt appear.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 02 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9638


hotcocoamix gmail.com changed:

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


--- Comment #5 from hotcocoamix gmail.com 2013-03-02 23:53:27 PST ---
changed status.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 02 2013
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9638


Andrej Mitrovic <andrej.mitrovich gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|FIXED                       |INVALID


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