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 { |