Add test case for issue 3147.

Review URL: https://chromiumcodereview.appspot.com//10534135

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8609 260f80e4-7a28-3924-810f-c04153c831b5
This commit is contained in:
ngeoffray@google.com 2012-06-13 14:49:26 +00:00
parent e1c28d7adf
commit be53362ff6
3 changed files with 30 additions and 0 deletions

View file

@ -0,0 +1,6 @@
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
#library('package1_test.dart');
#import('package:package1.dart');

View file

@ -0,0 +1,14 @@
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
#library("package1");
#import('package2.dart', prefix: 'p1');
#import('package2.dart', prefix: 'p2');
#import('package:package2.dart', prefix: 'p3');
main() {
Expect.identical(p1.x, p2.x);
Expect.identical(p1.x, p3.x);
}

View file

@ -0,0 +1,10 @@
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
#library("package2");
class X {
const X();
}
final X x = const X();