Skip to content

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

Open
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_1030068836
Open

copybara-service[bot] wants to merge 1 commit into
mainfrom
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 c1b2da3 to f292bfe Compare November 26, 2026 01:02
…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: 1030068836
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