Index: compiler/java/com/google/dart/compiler/parser/DartParser.java |
diff --git a/compiler/java/com/google/dart/compiler/parser/DartParser.java b/compiler/java/com/google/dart/compiler/parser/DartParser.java |
index 8453c78d73b4445b053b4911bafc8d8dacfa6647..32d8476363241a474831b30d2f3a2e508e21bd82 100644 |
--- a/compiler/java/com/google/dart/compiler/parser/DartParser.java |
+++ b/compiler/java/com/google/dart/compiler/parser/DartParser.java |
@@ -3710,7 +3710,7 @@ public class DartParser extends CompletionHooksParserBase { |
if (optional(Token.FINAL)) { |
modifiers = modifiers.makeFinal(); |
} |
- DartTypeNode type = (peek(1) == Token.IDENTIFIER || peek(1) == Token.LT) |
+ DartTypeNode type = (peek(1) == Token.IDENTIFIER || peek(1) == Token.LT || peek(1) == Token.PERIOD) |
? tryTypeAnnotation() : null; |
if (modifiers.isFinal() || type != null) { |
setup = done(new DartVariableStatement(parseInitializedVariableList(), type, modifiers)); |