mirror of
https://github.com/dart-lang/sdk
synced 2024-09-19 21:01:50 +00:00
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:
parent
e1c28d7adf
commit
be53362ff6
6
tests/standalone/package/package1_test.dart
Normal file
6
tests/standalone/package/package1_test.dart
Normal 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');
|
14
tests/standalone/package/packages/package1.dart
Normal file
14
tests/standalone/package/packages/package1.dart
Normal 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);
|
||||
}
|
10
tests/standalone/package/packages/package2.dart
Normal file
10
tests/standalone/package/packages/package2.dart
Normal 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();
|
Loading…
Reference in a new issue