Names are re-exported when imports have prefixes #2556
Labels
closed-obsolete
Closed as the reported issue is no longer relevant
P1
A high priority bug; for example, a single project is unusable or has many test failures
Milestone
Dart Editor build: 6498
Dart SDK version: 6478
It looks like imports with prefixes are mishandled in the analyzer. The editor happily accepts the following three files, but foo.Bar is not supposed to resolve (this only happens when the import has a prefix).
--- test.dart ---
import('foo.dart', prefix: 'foo');
void main() {
foo.Bar b = new foo.Bar();
print(b);
}
--- foo.dart ---
library('foo');
import('bar.dart');
--- bar.dart ---
library('bar');
class Bar {
toString() => 'bar';
}
The text was updated successfully, but these errors were encountered: