Rosetta icon indicating copy to clipboard operation
Rosetta copied to clipboard

Public members of nested classes get emitted incorrectly

Open guidoren opened this issue 8 years ago • 1 comments

public static class Example {		
  private static class Inner
  {
    public const int No = 0;
    public const int Yes = 1;
  }
}

produces

declare class Example {
  public no : number;
  public yes : number;
}

guidoren avatar Dec 06 '16 01:12 guidoren

Nested types are not supported at the moment. The intention is to support them after releasing the first development version.

Effort

An effort evaluation for enabling this in ScriptSharp definition only will be conducted. If not much work is required, this will become part of level-0 milestone.

andry-tino avatar Dec 06 '16 06:12 andry-tino