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

Unified Diff: tests/compiler/dart2js/serialization/test_data.dart

Issue 1994613004: Handle use of constant constructors with default values. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comment Created 4 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 | « tests/compiler/dart2js/serialization/helper.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/serialization/test_data.dart
diff --git a/tests/compiler/dart2js/serialization/test_data.dart b/tests/compiler/dart2js/serialization/test_data.dart
index 0606a48621cbd6c1e66c4db5b92a11e21238d2d1..652e3c5ea7ccff43cd5db3825bef56f1c0b24256 100644
--- a/tests/compiler/dart2js/serialization/test_data.dart
+++ b/tests/compiler/dart2js/serialization/test_data.dart
@@ -217,6 +217,28 @@ class C {
}
main() => const C();'''
}),
+
+ const Test(const {
+ 'main.dart': '''
+class C {
+ factory C() = Object;
+}
+main() => new C();'''
+ }),
+
+ const Test(const {
+ 'main.dart': '''
+abstract class C implements List {
+ factory C([_]) = List;
+}
+main() => new C();'''
+ }),
+
+ const Test(const {
+ 'main.dart': '''
+main() => const Duration();
+''',
+ })
];
class Test {
« no previous file with comments | « tests/compiler/dart2js/serialization/helper.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698