| Index: pkg/analyzer/test/src/summary/index_unit_test.dart
|
| diff --git a/pkg/analyzer/test/src/summary/index_unit_test.dart b/pkg/analyzer/test/src/summary/index_unit_test.dart
|
| index bfa331ff7f7ae97808231d3032a0fd536226f38a..38e0e44bcfa3c498a4172e446a4aec7b10e6df32 100644
|
| --- a/pkg/analyzer/test/src/summary/index_unit_test.dart
|
| +++ b/pkg/analyzer/test/src/summary/index_unit_test.dart
|
| @@ -540,6 +540,22 @@ main() {
|
| // No additional validation, but it should not fail with stack overflow.
|
| }
|
|
|
| + void test_isReferencedBy_ConstructorElement_namedOnlyWithDot() {
|
| + _indexTestUnit('''
|
| +class A {
|
| + A.named() {}
|
| +}
|
| +main() {
|
| + new A.named();
|
| +}
|
| +''');
|
| + // has ".named()", but does not have "named()"
|
| + int offsetWithoutDot = findOffset('named();');
|
| + int offsetWithDot = findOffset('.named();');
|
| + expect(unitIndex.usedElementOffsets, isNot(contains(offsetWithoutDot)));
|
| + expect(unitIndex.usedElementOffsets, contains(offsetWithDot));
|
| + }
|
| +
|
| void test_isReferencedBy_ConstructorElement_redirection() {
|
| _indexTestUnit('''
|
| class A {
|
|
|