Skip to content

Commit

Permalink
parser: improve type checking of 'parseTypeReference' function (#2965)
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanGoncharov committed Mar 13, 2021
1 parent 26e4568 commit afffdfe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/language/parser.js
Expand Up @@ -655,11 +655,11 @@ export class Parser {
const start = this._lexer.token;
let type;
if (this.expectOptionalToken(TokenKind.BRACKET_L)) {
type = this.parseTypeReference();
const innerType = this.parseTypeReference();
this.expectToken(TokenKind.BRACKET_R);
type = {
kind: Kind.LIST_TYPE,
type,
type: innerType,
loc: this.loc(start),
};
} else {
Expand Down

0 comments on commit afffdfe

Please sign in to comment.