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

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

Issue 25454005: Fix final declarations in dart_backend_test. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/dart_backend_test.dart
diff --git a/tests/compiler/dart2js/dart_backend_test.dart b/tests/compiler/dart2js/dart_backend_test.dart
index 54698905acc68760e99e8e572820238efec9c368..c57dfb318ea2c7b6dbda68aad077cd914779c242 100644
--- a/tests/compiler/dart2js/dart_backend_test.dart
+++ b/tests/compiler/dart2js/dart_backend_test.dart
@@ -179,8 +179,8 @@ testExtendsImplements() {
}
testVariableDefinitions() {
- testDart2Dart('main(){var x,y;final String s;}');
- testDart2Dart('main(){final int x,y;final String s;}');
+ testDart2Dart('main(){var x,y;final String s=null;}');
+ testDart2Dart('main(){final int x=0,y=0;final String s=null;}');
testDart2Dart('foo(f,g){}main(){foo(1,2);}');
testDart2Dart('foo(f(arg)){}main(){foo(main);}');
// A couple of static/finals inside a class.
@@ -205,7 +205,7 @@ testGetSet() {
}
testAbstractClass() {
- testDart2Dart('main(){A.foo;}abstract class A{final static num foo;}');
+ testDart2Dart('main(){A.foo;}abstract class A{final static num foo=0;}');
}
testConflictSendsRename() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698