Skip to content

Compiler produces error on variable named 'final' #86

@DartBot

Description

@DartBot

This issue was originally filed by [email protected]


What steps will reproduce the problem?

  1. Try running following code:
    main() {
      var final = 'final';
      print('${final}');
    }
  2. According to spec (v 0.01), section 14.1.1 'final' is not reserved word, so the code is valid according to spec.
    3.
    I would expect the change in spec according to current implementation (e.g. Dart.g assumes 'final' to be keyword).
    Product used http://www.dartlang.org/ 2011-10-12

Metadata

Metadata

Assignees

No one assigned

    Labels

    closed-not-plannedClosed as we don't intend to take action on the reported issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions