Skip to content

Annotating a top-level field as @internal should warn if the library is exported #62987

Description

@kevmoo

foo.dart has two things labeled @internal a function and a field.

If I export foo.dart from a library, I get a warning about the function, but not the field!

Expect to get a invalid_export_of_internal_element in both cases.

This works for classes, but not for fields!

On 3.12.0-285.0.dev

Metadata

Metadata

Assignees

Labels

area-dart-modelFor issues related to conformance to the language spec in the parser, compilers or the CLI analyzer.type-bugIncorrect behavior (everything from a crash to more subtle misbehavior)

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions