| 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 cd7e2b1b9b2472aa9db0495b04218ff05cf6ec6a..b29e6bda5b7d7ae6f0f306b47aeb3d91d18fed75 100644
|
| --- a/compiler/java/com/google/dart/compiler/resolver/ResolutionContext.java
|
| +++ b/compiler/java/com/google/dart/compiler/resolver/ResolutionContext.java
|
| @@ -203,7 +203,8 @@ 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) && !"dynamic".equals(name)) {
|
| + if (DartParser.PSEUDO_KEYWORDS_SET.contains(name) && !"dynamic".equals(name)
|
| + && typeArguments.isEmpty()) {
|
| onError(identifier, ResolverErrorCode.BUILT_IN_IDENTIFIER_AS_TYPE, name);
|
| return Types.newDynamicType();
|
| }
|
|
|