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.

Runtime error on static field named 'name' #587

Closed
@vsmenon

Description

@vsmenon
class Field {
  static const name = 'Foo';
}

void main() {
  print(Field.name);
}

triggers this at runtime:

TypeError: Cannot assign to read only property 'name' of function 'class Field extends core.Object {}'

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions