Bug 9638 – 'TOK216' come in sight

Status
RESOLVED
Resolution
INVALID
Severity
major
Priority
P2
Component
druntime
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2013-03-02T22:21:00Z
Last change time
2013-03-03T00:00:11Z
Assigned to
nobody
Creator
hotcocoamix

Comments

Comment #0 by hotcocoamix — 2013-03-02T22:21:19Z
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'?
Comment #1 by andrej.mitrovich — 2013-03-02T23:04:06Z
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?
Comment #2 by hotcocoamix — 2013-03-02T23:26:26Z
I tested in dmd2.062 . But DPaste compiler hasnt say error, I'm not sure about this bug.
Comment #3 by andrej.mitrovich — 2013-03-02T23:40:44Z
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.
Comment #4 by hotcocoamix — 2013-03-02T23:52:51Z
I am sorry, I tried uninstalling & installing dmd2.062, the bug doesnt appear.
Comment #5 by hotcocoamix — 2013-03-02T23:53:27Z
changed status.