Skip to content

members of @doNotStore tagged libraries are not reliably inheriting the annotation #43692

Open
@pq

Description

@pq

In some tests internally, the following pattern is not reliably working:

strings.dart:

@doNotStore
library strings;

import 'package:meta/meta.dart';

String get someString => 'string';

c.dart:

import 'strings.dart' as strings;

class C {
   String title(Object o) => strings.someString; //<= should show warning
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3A lower priority bug or feature requestarea-devexpFor issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.customer-google3devexp-warningIssues with the analyzer's Warning codestype-bugIncorrect behavior (everything from a crash to more subtle misbehavior)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions