Skip to content

Commit afffdfe

Browse files
parser: improve type checking of 'parseTypeReference' function (#2965)
1 parent 26e4568 commit afffdfe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/language/parser.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -655,11 +655,11 @@ export class Parser {
655655
const start = this._lexer.token;
656656
let type;
657657
if (this.expectOptionalToken(TokenKind.BRACKET_L)) {
658-
type = this.parseTypeReference();
658+
const innerType = this.parseTypeReference();
659659
this.expectToken(TokenKind.BRACKET_R);
660660
type = {
661661
kind: Kind.LIST_TYPE,
662-
type,
662+
type: innerType,
663663
loc: this.loc(start),
664664
};
665665
} else {

0 commit comments

Comments
 (0)