| 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 eb9e407da88255568a07a9643a1ee72b95c8fb5f..b93a39f3f3d816cbe67a2e72d483399f9d8dafee 100644
|
| --- a/pkg/analyzer/test/src/summary/linker_test.dart
|
| +++ b/pkg/analyzer/test/src/summary/linker_test.dart
|
| @@ -235,6 +235,25 @@ const x = [const C()];
|
| expect(classC.unnamedConstructor.isCycleFree, false);
|
| }
|
|
|
| + void test_createPackageBundle_withPackageUri() {
|
| + PackageBundle bundle = createPackageBundle(
|
| + '''
|
| +class B {
|
| + void f(int i) {}
|
| +}
|
| +class C extends B {
|
| + f(i) {} // Inferred param type: int
|
| +}
|
| +''',
|
| + uri: 'package:foo/bar.dart');
|
| + UnlinkedExecutable cf = bundle.unlinkedUnits[0].classes[1].executables[0];
|
| + UnlinkedParam cfi = cf.parameters[0];
|
| + expect(cfi.inferredTypeSlot, isNot(0));
|
| + EntityRef typeRef =
|
| + bundle.linkedLibraries[0].units[0].types[cfi.inferredTypeSlot];
|
| + expect(bundle.unlinkedUnits[0].references[typeRef.reference].name, 'int');
|
| + }
|
| +
|
| void test_getContainedName_nonStaticField() {
|
| createLinker('class C { var f; }');
|
| LibraryElementForLink library = linker.getLibrary(linkerInputs.testDartUri);
|
|
|