Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Pushing to self-typed Array field causes all assignments to be lost #54

@jeffbcross

Description

@jeffbcross

Based on SHA ffbbb47

Pushing an object of a given type to an array field causes all properties of that type to no longer be minified.

Input:

export class Foo {
  private _foolist:Array<Foo>;
  add(f:Foo) {
    this._foolist.push(f);
  }
}

Output:

export class Foo {
  private _foolist:Array<Foo>;
  add(f:Foo) {
    this._foolist.push(f);
  }
}

If I change the array to be an array of string instead, here is the nicely-renamed output

export class Foo {
  private $:Array<string>;
  _(f:string) {
    this.$.push(f);
  }
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions