Skip to content

Commit c8429ce

Browse files
JairusSWMaxGraey
andauthored
chore: token check should come before feature
Co-authored-by: Max Graey <maxgraey@gmail.com>
1 parent 5375b24 commit c8429ce

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/parser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,7 @@ export class Parser extends DiagnosticEmitter {
579579
}
580580

581581
// '[' Type (',' Type)* ']'
582-
} else if (this.options && this.options!.hasFeature(Feature.MultiValue) && token == Token.OpenBracket) {
582+
} else if (token == Token.OpenBracket && this.options && this.options!.hasFeature(Feature.MultiValue)) {
583583
let elements: TypeNode[] = [];
584584
let elementNames: (IdentifierExpression | null)[] = [];
585585
let hasElementNames = false;

0 commit comments

Comments
 (0)