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

Unified Diff: dart/tests/language/const_factory_redirection_test.dart

Issue 11415151: Record redirection targets as instantiated in the resolver. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Update co19 status Created 8 years, 1 month 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 | « dart/tests/co19/co19-dart2js.status ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/tests/language/const_factory_redirection_test.dart
diff --git a/dart/tests/language/const_factory_redirection_test.dart b/dart/tests/language/const_factory_redirection_test.dart
index 95c06908edb9ca561bce772e7614622d1b74e613..01390a86d1fc2daf5a74cc88305f5373692869b3 100644
--- a/dart/tests/language/const_factory_redirection_test.dart
+++ b/dart/tests/language/const_factory_redirection_test.dart
@@ -12,12 +12,15 @@ abstract class C {
class D implements C {
final int i;
const D(this.i);
+ m() => 'called m';
}
main() {
const C c = const C(42);
D d = c;
Expect.equals(42, d.i);
+ Expect.equals('called m', d.m());
d = new C(42);
Expect.equals(42, d.i);
+ Expect.equals('called m', d.m());
}
« no previous file with comments | « dart/tests/co19/co19-dart2js.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698