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

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

Issue 2105183003: Handle forwarding constructors (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 6 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/serialization/serialization_util.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 d27ec305fd72e4bae5aea5c7d3cbd4fc2b4b0031..2937d5b41210b73ca144037ddaac3d53e2b9a861 100644
--- a/tests/compiler/dart2js/serialization/test_data.dart
+++ b/tests/compiler/dart2js/serialization/test_data.dart
@@ -466,6 +466,21 @@ main() => m(null, null, null);
m(a, b, c) => a[b] ??= c;
''',
}),
+
+ const Test('Forwarding constructor defined by forwarding constructor', const {
+ 'main.dart': '''
+import 'a.dart';
+
+main() => new C();
+''',
+ }, preserializedSourceFiles: const {
+ 'a.dart': '''
+class A {}
+class B {}
+class C {}
+class D = A with B, C;
+''',
+ }),
];
class Test {
« no previous file with comments | « pkg/compiler/lib/src/serialization/serialization_util.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698