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

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

Issue 10689172: Fix incorrect unparse of static/final fields in classes: (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/dart_backend/emitter.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 56864d381061bd08c25d754d5893fb51d575cb9a..3aab4d45f6742f1a75c1eeb92af4c7e42f52cb4c 100644
--- a/tests/compiler/dart2js/unparser_test.dart
+++ b/tests/compiler/dart2js/unparser_test.dart
@@ -147,6 +147,9 @@ 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);}');
+ // A couple of static/finals inside a class.
+ testDart2Dart('main(){A.a; A.b;}class A{static final String a="5";'
+ 'static final String b="4";}');
}
testGetSet() {
« no previous file with comments | « lib/compiler/implementation/dart_backend/emitter.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698