Skip to content

Allow using an import prefix with ".." #30520

Closed as not planned
Closed as not planned
@matanlurey

Description

@matanlurey
        reflector
          ..registerFactory(ExampleService, () => new ExampleService())
          ..registerFactory(ExampleService2, () => new ExampleService2());

Results in:

The name 'reflector' refers to an import prefix, so it must be followed by '.'. #prefix_identifier_not_followed_by_dot

I don't see a technical reason why this can't be allowed.

Metadata

Metadata

Assignees

Labels

area-languageDart language related items (some items might be better tracked at github.com/dart-lang/language).closed-staleClosed as the issue or PR is assumed staletype-enhancementA request for a change that isn't a bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions