1

Closed

0.9.x branches are really weird

description

The code below compiles fine in 0.9.1.0 though _value is undefined in toString method.
class MyEnum {
    private _value = 0;
    private _names: any =
    {
        "0": "None",
        "1": "Open",
        "2": "Closed"
    };

    public toString() {
        return this._names[_value];  //should be this.value  !!!!!!
    }
  }
}
If i switch to develop or 0.9.1.1 branches the code fails to compile as expected, but the IDE is unusable.
The language service seems broken. No errors are shown in the IDE, and navigation bar is frozen.
Closed Aug 22, 2013 at 11:42 PM by danquirk
This appears to be fixed in the latest bits

comments