Feature request: Expand type queries grammer in ClassBody

Topics: Language Specification
Jan 2, 2014 at 8:10 AM
Hello!

I want to expand type queries grammer in ClassBody.

expected
class DataContainer {
  private data: { title: string; data: any; };
  setData(data: typeof this.data) {
    this.data = data;
  }
  getData(): typeof this.data {
    return this.data;
  }
}
actual
class DataContainer {
  private data: { title: string; data: any; };
  setData(data: typeof DataContainer.prototype.data) {
    this.data = data;
  }
  getData(): typeof DataContainer.prototype.data {
    return this.data;
  }
}
Coordinator
Jan 2, 2014 at 10:42 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.
Jan 3, 2014 at 2:38 AM
thanks! I'm voted.