Closed
Description
When importing a file with 'package:' the file should resolve to the same library as if it was imported with a relative URL.
Example to repro this error:
./out/Release_ia32/frog/bin/frog --package-root=./ a.dart
Where a.dart is:
library("a");
import('b.dart', prefix: 'b1');
import('b.dart', prefix: 'b2');
import('package:b.dart', prefix: 'b3');
main() {
print("${b1.x === b2.x} ${b1.x === b3.x}");
}
And b.dart is:
library("b");
class X {
const X();
}
final X x = const X();