| Index: pkg/analyzer/lib/src/kernel/resynthesize.dart
|
| diff --git a/pkg/analyzer/lib/src/kernel/resynthesize.dart b/pkg/analyzer/lib/src/kernel/resynthesize.dart
|
| index 30a2197c528642aa97d1b388adf83f0413e2addf..0cbeb8e95a09dd7508c656bb8293dd9a1e3f277f 100644
|
| --- a/pkg/analyzer/lib/src/kernel/resynthesize.dart
|
| +++ b/pkg/analyzer/lib/src/kernel/resynthesize.dart
|
| @@ -423,8 +423,8 @@ class _ExprBuilder {
|
| List<TypeAnnotation> arguments = _buildTypeArguments(type.typeArguments);
|
| return AstTestFactory.typeName3(name, arguments)..type = type;
|
| }
|
| - if (type is DynamicTypeImpl) {
|
| - var identifier = AstTestFactory.identifier3('dynamic')
|
| + if (type is DynamicTypeImpl || type is TypeParameterType) {
|
| + var identifier = AstTestFactory.identifier3(type.name)
|
| ..staticElement = type.element
|
| ..staticType = type;
|
| return AstTestFactory.typeName3(identifier)..type = type;
|
|
|