Index: tests/corelib/hidden_library_test.dart |
diff --git a/tests/compiler/dart2js_extra/regress/4515_3_test.dart b/tests/corelib/hidden_library_test.dart |
similarity index 58% |
copy from tests/compiler/dart2js_extra/regress/4515_3_test.dart |
copy to tests/corelib/hidden_library_test.dart |
index 319eb0cac719a777093aa372c3e2f0e27b396612..4e7dec06a8caaaa341ea0df76199463fd1fb6394 100644 |
--- a/tests/compiler/dart2js_extra/regress/4515_3_test.dart |
+++ b/tests/corelib/hidden_library_test.dart |
@@ -1,20 +1,10 @@ |
// Copyright (c) 2013, 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. |
+// Test that we can't import the internal hidden library "dart:_collection-dev". |
-class A { |
- a(x) => x + 1; |
-} |
- |
-f(p) => p("A"); |
+import "dart:_collection_dev"; /// 01: compile-time error |
main() { |
- A a = new A(); |
- a.a(1); |
- var v = null; |
- try { |
- v = f(a.a); |
- } catch (e) { } |
- |
- Expect.equals(null, v); |
+ var x = new Map(); |
} |