diff --git a/src/compiler/parser.ts b/src/compiler/parser.ts index 3c39a5a0bef..f71af45c7de 100644 --- a/src/compiler/parser.ts +++ b/src/compiler/parser.ts @@ -2356,7 +2356,7 @@ module ts { var errorStart = scanner.getTokenPos(); var errorLength = scanner.getTextPos() - errorStart; grammarErrorAtPos(errorStart, errorLength, Diagnostics.Type_expected); - return createNode(SyntaxKind.OmittedType); + return createNode(SyntaxKind.Missing); } return parseType();