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

Unified Diff: tests/language/deferred_inheritance_constraints_test.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
« no previous file with comments | « pkg/compiler/lib/src/ssa/builder.dart ('k') | tests/language/deferred_redirecting_factory_lib1.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/deferred_inheritance_constraints_test.dart
diff --git a/tests/language/deferred_inheritance_constraints_test.dart b/tests/language/deferred_inheritance_constraints_test.dart
index 8fb023c44cf51b1360266d8d1542c22c250b7508..ff009e69fcfc16fbc859cb4cfe5942b19f4c5d56 100644
--- a/tests/language/deferred_inheritance_constraints_test.dart
+++ b/tests/language/deferred_inheritance_constraints_test.dart
@@ -22,7 +22,7 @@ class C = C1 with
class D {
D() ;
factory D.factory() =
- lib. /// redirecting_constructor: static type warning, runtime error
+ lib. /// redirecting_constructor: static type warning
Foo2;
}
@@ -30,5 +30,7 @@ void main() {
new A();
new B();
new C();
- new D.factory();
+ Expect.throws(() { /// redirecting_constructor: continued
+ new D.factory();
+ }); /// redirecting_constructor: continued
}
« no previous file with comments | « pkg/compiler/lib/src/ssa/builder.dart ('k') | tests/language/deferred_redirecting_factory_lib1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698