Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Fix panic from
parse().unwrap()
at generic inference (dudykr#1070
) **Description:** ```rs if r.is_num() { match src.parse() { Ok(v) => { return Type::Lit(LitType { span, lit: RTsLit::Number(RNumber { span, value: v, raw: None }), metadata: Default::default(), tracker: Default::default(), }) } Err(..) => { return Type::Keyword(KeywordType { span, kind: TsKeywordTypeKind::TsNumberKeyword, metadata: Default::default(), tracker: Default::default(), }) } } } ```
- Loading branch information