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

Unified Diff: pkg/analyzer/test/src/summary/resynthesize_common.dart

Issue 2754423002: Fail inference when an instance field is referenced. (Closed)
Patch Set: Clean up and move tests. Created 3 years, 9 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: pkg/analyzer/test/src/summary/resynthesize_common.dart
diff --git a/pkg/analyzer/test/src/summary/resynthesize_common.dart b/pkg/analyzer/test/src/summary/resynthesize_common.dart
index 5d2a096d9443d7383f305e0560d3e781f2b37a68..b775363230a1da0a3166e4c249ab08aafb407380 100644
--- a/pkg/analyzer/test/src/summary/resynthesize_common.dart
+++ b/pkg/analyzer/test/src/summary/resynthesize_common.dart
@@ -4074,7 +4074,7 @@ const v = 'abc'.length;
checkElementText(
library,
r'''
-const int v = 'abc'.
+const dynamic v = 'abc'.
length/*location: dart:core;String;length?*/;
''');
} else {
@@ -4097,7 +4097,7 @@ const v = S.length;
library,
r'''
const String S = 'abc';
-const int v =
+const dynamic v =
S/*location: test.dart;S?*/.
length/*location: dart:core;String;length?*/;
''');
@@ -4128,7 +4128,7 @@ const v = S.length;
library,
r'''
import 'a.dart';
-const int v =
+const dynamic v =
S/*location: a.dart;S?*/.
length/*location: dart:core;String;length?*/;
''');
@@ -4159,7 +4159,7 @@ const v = p.S.length;
library,
r'''
import 'a.dart' as p;
-const int v =
+const dynamic v =
p/*location: null*/.
S/*location: a.dart;S?*/.
length/*location: dart:core;String;length?*/;
@@ -5463,7 +5463,7 @@ enum E {
}
final E vValue;
final List<E> vValues;
-final int vIndex;
+final dynamic vIndex;
''');
} else {
checkElementText(
« no previous file with comments | « pkg/analyzer/test/src/summary/resynthesize_ast_test.dart ('k') | pkg/analyzer/test/src/summary/summary_common.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698