Skip to content

[spec] Library version comments are not being ignored by the compiler. #2945

Open
@modulovalue

Description

@modulovalue

The language specification states that the content of a non-documentation comment must be ignored by the compiler:

Dart supports both single-line and multi-line comments.
A \Index{single line comment} begins with the token \code{//}.
Everything between \code{//} and the end of line
must be ignored by the Dart compiler
unless the comment is a documentation comment.

It looks to me like this is not consistent with the behavior of the "library version comment construct" e.g. // @dart = 2.12.

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