Skip to content

Conversation

@YashSuthar983
Copy link
Contributor

Add new diagnostic SyntaxError::TypeArgumentListCannotBeEmpty. Add regression test to assert parse error for empty generic list. Issue fixed: #11119

Description:

BREAKING CHANGE:

Related issue (if exists):
#11119

Add new diagnostic SyntaxError::TypeArgumentListCannotBeEmpty.
Add regression test to assert parse error for empty generic list.
Issue fixed: swc-project#11119

Signed-off-by: Yash Suthar <yashsuthar983@gmail.com>
@YashSuthar983 YashSuthar983 requested a review from a team as a code owner October 22, 2025 11:08
@CLAassistant
Copy link

CLAassistant commented Oct 22, 2025

CLA assistant check
All committers have signed the CLA.

@changeset-bot
Copy link

changeset-bot bot commented Oct 22, 2025

🦋 Changeset detected

Latest commit: 3c9ccce

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@codspeed-hq
Copy link

codspeed-hq bot commented Oct 22, 2025

CodSpeed Performance Report

Merging #11164 will not alter performance

Comparing YashSuthar983:main (3c9ccce) with main (055322c)1

Summary

✅ 140 untouched

Footnotes

  1. No successful run was found on main (94fb705) during the generation of this report, so 055322c was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.

Signed-off-by: Yash Suthar <yashsuthar983@gmail.com>
@kdy1 kdy1 changed the title Fixed Parser error for empty type args for generic feat(es/parser): Add an error for empty type args for generic Oct 24, 2025
@kdy1 kdy1 enabled auto-merge (squash) October 24, 2025 01:35
@kdy1 kdy1 requested a review from a team as a code owner October 24, 2025 01:35
@kdy1 kdy1 merged commit 9a1fa84 into swc-project:main Oct 24, 2025
322 of 324 checks passed
CPunisher added a commit to CPunisher/swc that referenced this pull request Oct 27, 2025
@kdy1 kdy1 modified the milestones: Planned, v1.13.21, v1.14.0 Oct 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Expect parser error but not for empty generic list

3 participants