| Index: sdk/lib/_internal/compiler/implementation/resolution/signatures.dart
|
| diff --git a/sdk/lib/_internal/compiler/implementation/resolution/signatures.dart b/sdk/lib/_internal/compiler/implementation/resolution/signatures.dart
|
| index 746741862f9ff3896438b92512fd38d912f1c45e..97326a3cf7ac11b28bad8196ba609e41d0565b86 100644
|
| --- a/sdk/lib/_internal/compiler/implementation/resolution/signatures.dart
|
| +++ b/sdk/lib/_internal/compiler/implementation/resolution/signatures.dart
|
| @@ -118,7 +118,7 @@ class SignatureResolver extends MappingVisitor<ParameterElementX> {
|
| if (fieldElement != null) {
|
| element.typeCache = fieldElement.computeType(compiler);
|
| } else {
|
| - element.typeCache = compiler.types.dynamicType;
|
| + element.typeCache = const DynamicType();
|
| }
|
| }
|
| }
|
| @@ -343,10 +343,10 @@ class SignatureResolver extends MappingVisitor<ParameterElementX> {
|
| }
|
|
|
| DartType resolveReturnType(TypeAnnotation annotation) {
|
| - if (annotation == null) return compiler.types.dynamicType;
|
| + if (annotation == null) return const DynamicType();
|
| DartType result = resolver.resolveTypeAnnotation(annotation);
|
| if (result == null) {
|
| - return compiler.types.dynamicType;
|
| + return const DynamicType();
|
| }
|
| return result;
|
| }
|
|
|