Skip to content

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

@rolfbjarne

Description

@rolfbjarne

What happened?

Test code:

namespace TestBlock {
	class MainClass {
		static IntPtr X (object callback) {}
		static IntPtr X (delegate*<void> callback) {}
		static IntPtr X (delegate* <void> callback) {}
		static IntPtr X (delegate* unmanaged<void> callback) {}
	}
}

Rendered:

Screen Shot 2021-11-10 at 11 13 39

The void keyword on line 5 should be rendered the same way as on line 4, the only difference is a space.

Something similar seems to be happening on line 6 as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions