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

Unified Diff: tests/compiler/dart2js/unparser_test.dart

Issue 10735053: Fix unparsing of variable definitions. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 5 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 | « lib/compiler/implementation/tree/unparser.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/unparser_test.dart
diff --git a/tests/compiler/dart2js/unparser_test.dart b/tests/compiler/dart2js/unparser_test.dart
index 81afebae6902a4dfe21b653241592ff293dd1073..218656a8b59fc16b99969b4de696ea7aca8b3305 100644
--- a/tests/compiler/dart2js/unparser_test.dart
+++ b/tests/compiler/dart2js/unparser_test.dart
@@ -142,6 +142,12 @@ testClassWithMethod() {
testDart2Dart('main(){var a=new A(); a.foo();}class A{void foo(){}}');
}
+testVariableDefinitions() {
+ testDart2Dart('main(){final var x, y; final String s;}');
+ testDart2Dart('foo(f, g){}main(){foo(1, 2);}');
+ testDart2Dart('foo(f(arg)){}main(){foo(main);}');
+}
+
main() {
testGenericTypes();
testForLoop();
@@ -156,5 +162,6 @@ main() {
testSimpleTopLevelClass();
testClassWithSynthesizedConstructor();
testClassWithMethod();
+ testVariableDefinitions();
testTopLevelField();
}
« no previous file with comments | « lib/compiler/implementation/tree/unparser.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698