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

Unified Diff: tests/language/deferred_redirecting_factory_lib1.dart

Issue 1127363003: Insert the right checks for redirecting factories to deferred constructors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: update to status-file rebase Created 5 years, 7 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_redirecting_factory_lib1.dart
diff --git a/tests/language/deferred_redirecting_factory_lib1.dart b/tests/language/deferred_redirecting_factory_lib1.dart
new file mode 100644
index 0000000000000000000000000000000000000000..e9100fb40fe839a695e765efb4d2eefba3499bb1
--- /dev/null
+++ b/tests/language/deferred_redirecting_factory_lib1.dart
@@ -0,0 +1,18 @@
+// 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.
+
+library lib1;
+
+import "deferred_redirecting_factory_lib2.dart" deferred as lib2;
+import "deferred_redirecting_factory_test.dart" as main;
+
+loadLib2() {
+ return lib2.loadLibrary();
+}
+
+class C extends main.C {
+ String get foo => "lib1";
+ C();
+ factory C.a() = lib2.C;
+}
« no previous file with comments | « tests/language/deferred_inheritance_constraints_test.dart ('k') | tests/language/deferred_redirecting_factory_lib2.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698