| Index: src/parsing/parser.cc
|
| diff --git a/src/parsing/parser.cc b/src/parsing/parser.cc
|
| index a2c6f22e4e0696f7ac1087ca43b12f44acf43580..8af7f22ae96ca7e6f56877059d616f1e959f428e 100644
|
| --- a/src/parsing/parser.cc
|
| +++ b/src/parsing/parser.cc
|
| @@ -1289,6 +1289,16 @@ Statement* Parser::ParseStatementListItem(bool* ok) {
|
| return ParseVariableStatement(kStatementListItem, NULL, ok);
|
| }
|
| break;
|
| + case Token::IDENTIFIER: {
|
| + if (!scope_->typed()) break;
|
| + int pos = peek_position();
|
| + if (CheckContextualKeyword(CStrVector("type"))) {
|
| + return ParseTypeAliasDeclaration(pos, ok);
|
| + }
|
| + break;
|
| + }
|
| + // TODO(nikolaos): interface
|
| + // TODO(nikolaos): ambient
|
| default:
|
| break;
|
| }
|
|
|