| Index: src/parsing/preparser.cc
|
| diff --git a/src/parsing/preparser.cc b/src/parsing/preparser.cc
|
| index 41b3d63206fe1d3c0183c94806e035c1fc3530bf..51d7f50ec6592d6b6d0c280ec024b92986bed047 100644
|
| --- a/src/parsing/preparser.cc
|
| +++ b/src/parsing/preparser.cc
|
| @@ -193,6 +193,16 @@ PreParser::Statement PreParser::ParseStatementListItem(bool* ok) {
|
| return ParseVariableStatement(kStatementListItem, 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;
|
| }
|
|
|