Skip to content

[records] parse errors when trying to annotate a record type class field #2469

Closed
@pq

Description

@pq

The following code generates what look like parser errors.

image

error: Annotation must be either a const variable reference or const constructor invocation. (invalid_annotation at [sandbox] lib/public.dart:27)
error: Variables must be declared using the keywords 'const', 'final', 'var' or a type name. (missing_const_final_var_or_type at [sandbox] lib/public.dart:28)

/fyi @jensjoha

Metadata

Metadata

Assignees

No one assigned

    Labels

    recordsIssues related to records.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions