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

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

Issue 2011323002: Fix handling of identifier sequences starting with a function parameter. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Fix an errant test Created 4 years, 7 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/linker_test.dart
diff --git a/pkg/analyzer/test/src/summary/linker_test.dart b/pkg/analyzer/test/src/summary/linker_test.dart
index 47138b0447940add2e6ee216620beb0a92b86a61..6bfb3fc7df62bcfed31c16c27519f6a0f2cb82c7 100644
--- a/pkg/analyzer/test/src/summary/linker_test.dart
+++ b/pkg/analyzer/test/src/summary/linker_test.dart
@@ -198,6 +198,28 @@ var y = x;
'() → dynamic');
}
+ void test_inferredType_closure_fromBundle_identifierSequence() {
+ var bundle = createPackageBundle(
+ '''
+class C {
+ static final x = (D d) => d.e;
+}
+class D {
+ E e;
+}
+class E {}
+''',
+ path: '/a.dart');
+ addBundle(bundle);
+ createLinker('''
+import 'a.dart';
+var y = C.x;
+''');
+ LibraryElementForLink library = linker.getLibrary(linkerInputs.testDartUri);
+ expect(_getVariable(library.getContainedName('y')).inferredType.toString(),
+ '(D) → E');
+ }
+
void test_inferredType_instanceField_dynamic() {
createLinker('''
var x;
« no previous file with comments | « pkg/analyzer/lib/src/summary/summarize_const_expr.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