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() {} |