| Index: compiler/java/com/google/dart/compiler/resolver/ResolutionContext.java
|
| diff --git a/compiler/java/com/google/dart/compiler/resolver/ResolutionContext.java b/compiler/java/com/google/dart/compiler/resolver/ResolutionContext.java
|
| index 9efd3dacc772808896c28a43a95102632fe9459b..1c933dd22ada292a50cc0b624da5ecac52491361 100644
|
| --- a/compiler/java/com/google/dart/compiler/resolver/ResolutionContext.java
|
| +++ b/compiler/java/com/google/dart/compiler/resolver/ResolutionContext.java
|
| @@ -219,7 +219,7 @@ public class ResolutionContext implements ResolutionErrorListener {
|
| // Built-in identifier can not be used as a type annotation.
|
| if (identifier instanceof DartIdentifier) {
|
| String name = ((DartIdentifier) identifier).getName();
|
| - if (DartParser.PSEUDO_KEYWORDS_SET.contains(name)) {
|
| + if (DartParser.PSEUDO_KEYWORDS_SET.contains(name) && !"Dynamic".equals(name)) {
|
| onError(identifier, ResolverErrorCode.BUILT_IN_IDENTIFIER_AS_TYPE, name);
|
| return Types.newDynamicType();
|
| }
|
|
|