Skip to content

The error message for const Symbol of private identifiers should be better. #30848

Closed
@floitschG

Description

@floitschG

Creating private symbols using the const Symbol constructor breaks DDC:

main() {
  print(const Symbol("_foo"));
}

yields the following error:

[error] Evaluation of this constant expression throws an exception.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2A bug or feature request we're likely to work ondevexp-uxlegacy-area-analyzerUse area-devexp instead.type-enhancementA request for a change that isn't a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions