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

Unified Diff: pkg/analyzer/test/src/dart/analysis/index_test.dart

Issue 2529433003: Fix for exception duirng indexing a reference to MultiplyDefinedElement. (Closed)
Patch Set: Created 4 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
« no previous file with comments | « pkg/analyzer/lib/src/dart/analysis/index.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/src/dart/analysis/index_test.dart
diff --git a/pkg/analyzer/test/src/dart/analysis/index_test.dart b/pkg/analyzer/test/src/dart/analysis/index_test.dart
index 04048636e3235c44ebea7f5b9cf1798b6aea1137..d090dbb85232f681bb2ad9db6c8b2eaedf6f3ec3 100644
--- a/pkg/analyzer/test/src/dart/analysis/index_test.dart
+++ b/pkg/analyzer/test/src/dart/analysis/index_test.dart
@@ -793,6 +793,16 @@ class A {
..isReferencedAt('method); // nq', false);
}
+ test_isReferencedBy_MultiplyDefinedElement() async {
+ provider.newFile(_p('$testProject/a1.dart'), 'class A {}');
+ provider.newFile(_p('$testProject/a2.dart'), 'class A {}');
+ await _indexTestUnit('''
+import 'a1.dart';
+import 'a2.dart';
+A v = null;
+''');
+ }
+
test_isReferencedBy_ParameterElement() async {
await _indexTestUnit('''
foo({var p}) {}
« no previous file with comments | « pkg/analyzer/lib/src/dart/analysis/index.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698