Skip to content

Conversation

@deathaxe
Copy link
Collaborator

Fixes #3131

This PR adds funcptr_... contexts, implementing C#9 function pointers.

see: https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/proposals/csharp-9.0/function-pointers

This commit ...

1. removes redundant `- match: {{name}}` pattern from `type_parameter` context,
   as it is already covered by included `type` context.
2. adds `meta.generic` scope directly to `type_parameter` so it can directly
   be pushed, if required - avoiding intermediate anonymous contexts.
@deathaxe deathaxe force-pushed the pr/cs/cs9-function-pointers branch from 0886c92 to 5b20fc0 Compare November 20, 2025 19: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.

[C#] Spaces in function pointer signatures not handled correctly

2 participants