Skip to content

Fix nullable annotation for types with generics#92

Open
paramamue wants to merge 1 commit intocodecentric:masterfrom
paramamue:defaultvalue-null
Open

Fix nullable annotation for types with generics#92
paramamue wants to merge 1 commit intocodecentric:masterfrom
paramamue:defaultvalue-null

Conversation

@paramamue
Copy link
Contributor

This is a correction for my PR #85 a few months ago.
The current code generates invalid syntax for a null parameter with generic arguments because it searches for the first whitespace.
Func<int,? int> func = null

I switched to a CSharpSyntaxRewriter, which hopefully properly handles all other cases that might exist.

@paramamue paramamue force-pushed the defaultvalue-null branch from 6b31e62 to d8ac0ae Compare March 6, 2026 11:23
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