mirror of
https://github.com/swc-project/swc.git
synced 2024-10-05 04:39:06 +03:00
9e6dad9baf
**Description:** The related issue is a product to the fact that the lexer sees a `<<` token in `fun<<T>...` and therefore parses the type args as an arrow function. This PR adds the handling of the "split" of `<<` when beginning to parse type args. I am open for suggestions, I still find this a bit odd (in `parse_ts_type_args()`): ```rs if is!(p, "<<") { p.input.cut_lshift(); } else { expect!(p, '<'); } ``` **Related issue:** - Closes #7187 - Closes #8209 - Closes #8581 |
||
---|---|---|
.. | ||
benches | ||
examples | ||
scripts | ||
src | ||
tests | ||
.gitignore | ||
Cargo.toml | ||
colors.js |