diff --git a/src/quick-lint-js/fe/parse-expression.cpp b/src/quick-lint-js/fe/parse-expression.cpp index eb88024414..6239d1fd52 100644 --- a/src/quick-lint-js/fe/parse-expression.cpp +++ b/src/quick-lint-js/fe/parse-expression.cpp @@ -2158,8 +2158,8 @@ Expression* Parser::parse_expression_remainder(Parse_Visitor_Base& v, // cond ? (param): RetType => body : f // cond ? (t) : f - if (this->options_.typescript && - this->peek().type == Token_Type::equal_greater) { + QLJS_ASSERT(this->options_.typescript); + if (this->peek().type == Token_Type::equal_greater) { // cond ? (t) : param => body // cond ? (param): RetType => body : f // ^^