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

Unified Diff: pkg/analysis_server/test/services/correction/fix_test.dart

Issue 731313004: Issue 21618. Fix for empty code for 'dynamic' type. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 1 month 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: pkg/analysis_server/test/services/correction/fix_test.dart
diff --git a/pkg/analysis_server/test/services/correction/fix_test.dart b/pkg/analysis_server/test/services/correction/fix_test.dart
index 02375e68aef1a07800b33c00a4d8e79763256e1f..bf4e5a24e2b101ce17a83dedff2b21aae9f8bc4c 100644
--- a/pkg/analysis_server/test/services/correction/fix_test.dart
+++ b/pkg/analysis_server/test/services/correction/fix_test.dart
@@ -442,6 +442,30 @@ main(A a) {
''');
}
+ void test_createField_getter_qualified_instance_dynamicType() {
+ _indexTestUnit('''
+class A {
+ B b;
+ void f(Object p) {
+ p == b.test;
+ }
+}
+class B {
+}
+''');
+ assertHasFix(FixKind.CREATE_FIELD, '''
+class A {
+ B b;
+ void f(Object p) {
+ p == b.test;
+ }
+}
+class B {
+ var test;
+}
+''');
+ }
+
void test_createField_getter_unqualified_instance_asInvocationArgument() {
_indexTestUnit('''
class A {

Powered by Google App Engine
This is Rietveld 408576698