Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(308)

Unified Diff: tests/language/deferred_no_prefix_negative_test.dart

Issue 169703003: Add prefix constraints for deferred imports. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tests/language/deferred_no_prefix_negative_test.dart
diff --git a/tests/language/check_member_static_test.dart b/tests/language/deferred_no_prefix_negative_test.dart
similarity index 53%
copy from tests/language/check_member_static_test.dart
copy to tests/language/deferred_no_prefix_negative_test.dart
index e66c37da0bfd939d4a2c57a2aa3e80e314249be8..81b5fac56f026d3e1aeeea30d490deca4c9063f0 100644
--- a/tests/language/check_member_static_test.dart
+++ b/tests/language/deferred_no_prefix_negative_test.dart
@@ -2,20 +2,11 @@
// 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.
-class A {
- static var a;
- var b;
-}
+import "dart:async";
-class B extends A {
+// Loading a deferred library without prefix is not allowed.
+@lazy import "deferred_constraints_lib2.dart";
-}
+const lazy = const DeferredLibrary('lib');
-class C extends B {
- var a; /// 01: static type warning
- static var b; /// 02: compile-time error
-}
-
-void main() {
- new C();
-}
+void main() {}
« no previous file with comments | « tests/language/deferred_duplicate_prefix3_negative_test.dart ('k') | tests/language/duplicate_import_prefix_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698