Hi
The following code:
#import("Library1.dart");
#import("Library2.dart", prefix:"lib2");
void main() {
Element element1 = new Element();
lib2.Element element2 = new lib2.Element(); // using element from Library2
}
works fine for me using editor build 6167.
As Ladislav says, this is the same as your line:
lib2.Element element2 = new lib2.Element(); // uses Element from library2
What build of Dart are you using?
Cheers,
Chris.
On 6 April 2012 12:29, andrew mezoni
<andrew...@gmail.com> wrote:
var element1 = new Element(); // uses Element from library1
var element2 = new lib2.Element(); // uses Element from library2