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

Unified Diff: pkg/analysis_server/test/services/index/dart_index_contributor_test.dart

Issue 1162853004: Issue 23568. Fix for NPE in index when unresolved field formal parameter. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 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/analysis_server/test/services/index/dart_index_contributor_test.dart
diff --git a/pkg/analysis_server/test/services/index/dart_index_contributor_test.dart b/pkg/analysis_server/test/services/index/dart_index_contributor_test.dart
index d226565187e2886b249d3ec475501271656e1fdc..d3fe2030198adb11eaa7252bdd82556e7fc09824 100644
--- a/pkg/analysis_server/test/services/index/dart_index_contributor_test.dart
+++ b/pkg/analysis_server/test/services/index/dart_index_contributor_test.dart
@@ -79,6 +79,15 @@ class DartUnitContributorTest extends AbstractSingleUnitTest {
});
}
+ void test_bad_unresolvedFieldFormalParameter() {
+ verifyNoTestUnitErrors = false;
+ _indexTestUnit('''
+class Test {
+ final field;
+ Test(this.fie);
+}''');
+ }
+
void test_definesClass() {
_indexTestUnit('class A {}');
// prepare elements

Powered by Google App Engine
This is Rietveld 408576698