| Index: pkg/analyzer/test/src/summary/resynthesize_test.dart
|
| diff --git a/pkg/analyzer/test/src/summary/resynthesize_test.dart b/pkg/analyzer/test/src/summary/resynthesize_test.dart
|
| index a46b74120b978a42d0030e8e4685aa2babf95661..ccd2deb19e500377d5b7e3c9a893b292007a813f 100644
|
| --- a/pkg/analyzer/test/src/summary/resynthesize_test.dart
|
| +++ b/pkg/analyzer/test/src/summary/resynthesize_test.dart
|
| @@ -658,7 +658,13 @@ abstract class AbstractResynthesizeTest extends AbstractSingleUnitTest {
|
| }
|
| expect(original, isNotNull);
|
| expect(resynthesized, isNotNull, reason: desc);
|
| - expect(rImpl.runtimeType, oImpl.runtimeType);
|
| + if (rImpl is DefaultParameterElementImpl && oImpl is ParameterElementImpl) {
|
| + // This is ok provided the resynthesized parameter element doesn't have
|
| + // any evaluation result.
|
| + expect(rImpl.evaluationResult, isNull);
|
| + } else {
|
| + expect(rImpl.runtimeType, oImpl.runtimeType);
|
| + }
|
| expect(resynthesized.kind, original.kind);
|
| expect(resynthesized.location, original.location, reason: desc);
|
| expect(resynthesized.name, original.name);
|
| @@ -3226,6 +3232,14 @@ Stream s;
|
| checkLibrary('import "a.dart"; import "b.dart"; C c; D d;');
|
| }
|
|
|
| + void test_inferedType_usesSyntheticFunctionType_functionTypedParam() {
|
| + checkLibrary('''
|
| +int f(int x(String y)) => null;
|
| +String g(int x(String y)) => null;
|
| +var v = [f, g];
|
| +''');
|
| + }
|
| +
|
| test_inferred_function_type_for_variable_in_generic_function() {
|
| // In the code below, `x` has an inferred type of `() => int`, with 2
|
| // (unused) type parameters from the enclosing top level function.
|
|
|