Index: tests/language/deferred_super_dependency_test.dart |
diff --git a/tests/language/deferred_super_dependency_test.dart b/tests/language/deferred_super_dependency_test.dart |
new file mode 100644 |
index 0000000000000000000000000000000000000000..d2f801fbe21bceb227b595eaba541c89b99390c3 |
--- /dev/null |
+++ b/tests/language/deferred_super_dependency_test.dart |
@@ -0,0 +1,15 @@ |
+// Copyright (c) 2015, 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. |
+ |
+// Regression test. |
+// lib.C.foo has code that references `super.foo=` that does not exist. This |
+// used to cause a crash. |
+ |
+import "package:expect/expect.dart"; |
+import "deferred_super_dependency_lib.dart" deferred as lib; /// 01: static type warning |
+ |
+main() async { |
+ await lib.loadLibrary(); /// 01: continued |
+ Expect.throws(() => new lib.C().foo(), (e) => e is NoSuchMethodError); /// 01: continued |
+} |