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

Parameter initializers (default values) should be const #368

@mhevery

Description

@mhevery
  constructor(public path: string, public child: Url = null,
              public auxiliary: Url[] =[],
              public params: {[key: string]: any} =  {}) {}

was:

  Url(this.path, [this.child = null, this.auxiliary = [], this.params = {}]) {}

should be:

  RootUrl(String path,
  Url(this.path, [this.child = null, this.auxiliary = const [], this.params = const {}]) {}
  • const [] instead of []
  • const {} instead of {}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions