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

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

Issue 2244333003: Remove AST-hack for multi-field declarations. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comments. Created 4 years, 4 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/semantic_visitor_test_decl_data.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 9fbd2236cc3353b67f5ad1b7986b63d32c5432ce..73d088fd0d5cb069d81b357be0816b1ea1e8afcd 100644
--- a/tests/compiler/dart2js/serialization/test_data.dart
+++ b/tests/compiler/dart2js/serialization/test_data.dart
@@ -673,6 +673,18 @@ class ConstClass {
}
''',
}),
+
+ const Test('Multi variable declaration', const {
+ 'main.dart': '''
+import 'a.dart';
+
+main() => y;
+''',
+ }, preserializedSourceFiles: const {
+ 'a.dart': '''
+var x, y = 2;
+''',
+ }),
];
class Test {
« no previous file with comments | « tests/compiler/dart2js/semantic_visitor_test_decl_data.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698