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

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

Issue 10830359: dart2dart Fix collecting type of class fields (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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
Index: tests/compiler/dart2js/unparser_test.dart
diff --git a/tests/compiler/dart2js/unparser_test.dart b/tests/compiler/dart2js/unparser_test.dart
index 4dd587b6ca6f5bb04f7012efc33af762695fdcac..27df5c19d0753734dd272d8109630f39ebefba1c 100644
--- a/tests/compiler/dart2js/unparser_test.dart
+++ b/tests/compiler/dart2js/unparser_test.dart
@@ -416,6 +416,10 @@ main() {
(String result) { Expect.equals(expectedResult, result); });
}
+testFieldTypeOutput() {
+ testDart2Dart('main(){new A().field;}class B{}class A{B field;}');
+}
+
main() {
testSignedConstants();
testGenericTypes();
@@ -444,4 +448,5 @@ main() {
testClassExtendsWithArgs();
testStaticInvocation();
testLibraryGetSet();
+ testFieldTypeOutput();
}

Powered by Google App Engine
This is Rietveld 408576698