mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-06-10 17:05:58 -05:00
Fix parsing
This commit is contained in:
@@ -2887,11 +2887,11 @@ namespace ts {
|
||||
if (parseOptional(SyntaxKind.ExtendsKeyword)) {
|
||||
const node = <ConditionalTypeNode>createNode(SyntaxKind.ConditionalType, type.pos);
|
||||
node.checkType = type;
|
||||
node.extendsType = parseUnionTypeOrHigher();
|
||||
node.extendsType = parseType();
|
||||
parseExpected(SyntaxKind.QuestionToken);
|
||||
node.trueType = parseConditionalTypeOrHigher();
|
||||
node.trueType = parseType();
|
||||
parseExpected(SyntaxKind.ColonToken);
|
||||
node.falseType = parseConditionalTypeOrHigher();
|
||||
node.falseType = parseType();
|
||||
return finishNode(node);
|
||||
}
|
||||
return type;
|
||||
|
||||
Reference in New Issue
Block a user