Skip to content

@annotation super. appears parsed differently than @annotation this. #5247

@matanlurey

Description

@matanlurey

I'm guessing the grammar change was not reflected the same way, ... or something :)

import 'package:meta/meta.dart';

final class Base {
  const Base(@mustBeConst this.code);
  final int code;
}

final class Super extends Base {
  const Super(@mustBeConst super.code);
}

Real example:

Screenshot 2024-09-03 at 11 47 26 PM

Metadata

Metadata

Assignees

No one assigned

    Labels

    in editorRelates to code editing or language featuresin lsp/analysis serverSomething to be fixed in the Dart analysis serveris bugrelies on sdk changesSomething that requires changes in the Dart/Flutter SDK to ship before it will become available

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions