CommunityToolkit / dotnet

.NET Community Toolkit is a collection of helpers and APIs that work for all .NET developers and are agnostic of any specific UI platform. The toolkit is maintained and published by Microsoft, and part of the .NET Foundation.
https://docs.microsoft.com/dotnet/communitytoolkit/?WT.mc_id=dotnet-0000-bramin
Other
3.07k stars 299 forks source link

[RelayCommand] does not work with partial methods #632

Closed Sergio0694 closed 1 year ago

Sergio0694 commented 1 year ago

Describe the bug

Using [RelayCommand] with partial methods incorrectly marks them as being overloads, and emits an error.

Regression

No.

Steps to reproduce

[RelayCommand]
private partial void Foo();

private partial void Foo()
{
}

private partial void Bar();

[RelayCommand]
private partial void Bar()
{
}

Expected behavior

The code should compile just fine.