Skip to content

Return a clearer error for empty type parameter lists in ParseTypeSignature - #2494

Merged
copybara-service[bot] merged 1 commit into
masterfrom
test_1030068836
Nov 26, 2026
Merged

copybara-service[bot] merged 1 commit into
masterfrom
test_1030068836

Conversation

@copybara-service

Copy link
Copy Markdown

Return a clearer error for empty type parameter lists in ParseTypeSignature

When parsing type signatures with empty angle brackets (e.g., list<>,
map<>, map< >), ParseTypeSignature previously split the empty
parameter substring into {""} and recursed, returning "Empty type signature". Check for an empty parameter list explicitly and return
"Invalid type signature: empty type parameter list" instead.

@copybara-service
copybara-service Bot force-pushed the test_1030068836 branch 2 times, most recently from 64adcb2 to 0b19fbf Compare November 26, 2026 01:41
…nature

When parsing type signatures with empty angle brackets (e.g., `list<>`,
`map<>`, `map< >`), `ParseTypeSignature` previously split the empty
parameter substring into `{""}` and recursed, returning `"Empty type
signature"`. Check for an empty parameter list explicitly and return
`"Invalid type signature: empty type parameter list"` instead.

PiperOrigin-RevId: 1030304066
@copybara-service
copybara-service Bot merged commit 3337522 into master Nov 26, 2026
4 of 5 checks passed
@copybara-service
copybara-service Bot deleted the test_1030068836 branch November 26, 2026 01:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant