Skip to content

Spec bug: library imports itself doesn't take prefix: into account #2293

Closed
@DartBot

Description

@DartBot

This issue was originally filed by [email protected]


The spec (0.08) says:

"It is a compile-time error if a name N is introduced into the library scope of a library A, and either:
N is declared by A, OR
Another import introduces N into the scope of A.
(Note:) This implies that it is a compile-time error for a library to import itself, as the names of its members will be duplicated."

I think this is no longer true given the ability to prefix imports.

Metadata

Metadata

Assignees

Labels

area-languageDart language related items (some items might be better tracked at github.com/dart-lang/language).

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions