| 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 ec201eb58c428eecbe96bf024fef8f626e95ac49..01a6c44b747fb5b4327b83d3b8661a8eb8fe0849 100644
|
| --- a/pkg/analyzer/test/src/summary/linker_test.dart
|
| +++ b/pkg/analyzer/test/src/summary/linker_test.dart
|
| @@ -351,6 +351,34 @@ var y = C.x;
|
| '(D) → dynamic');
|
| }
|
|
|
| + void test_inferredType_implicitFunctionTypeIndices() {
|
| + var bundle = createPackageBundle(
|
| + '''
|
| +class A {
|
| + void foo(void bar(int arg)) {}
|
| +}
|
| +class B extends A {
|
| + void foo(bar) {}
|
| +}
|
| +''',
|
| + path: '/a.dart');
|
| + addBundle('/a.ds', bundle);
|
| + createLinker('''
|
| +import 'a.dart';
|
| +class C extends B {
|
| + void foo(bar) {}
|
| +}
|
| +''');
|
| + LibraryElementForLink library = linker.getLibrary(linkerInputs.testDartUri);
|
| + library.libraryCycleForLink.ensureLinked();
|
| + ClassElementForLink_Class cls = library.getContainedName('C');
|
| + expect(cls.methods, hasLength(1));
|
| + MethodElementForLink foo = cls.methods[0];
|
| + expect(foo.parameters, hasLength(1));
|
| + FunctionType barType = foo.parameters[0].type;
|
| + expect(barType.parameters[0].type.toString(), 'int');
|
| + }
|
| +
|
| void test_inferredType_instanceField_conditional_genericFunctions() {
|
| createLinker('''
|
| class C {
|
|
|