-
Notifications
You must be signed in to change notification settings - Fork 358
Closed
Labels
bug 🐛An unexpected issue that highlights incorrect behaviorAn unexpected issue that highlights incorrect behaviormvvm-toolkit 🧰Issues/PRs for the MVVM ToolkitIssues/PRs for the MVVM Toolkit
Description
Describe the bug
See repro.
Regression
No
Steps to reproduce
[TestMethod]
public void MultipleICommandMethodOverloads_WithOverloadInBaseType()
{
string source = @"
using CommunityToolkit.Mvvm.Input;
namespace MyApp
{
public partial class BaseViewModel
{
[ICommand]
private void GreetUser()
{
}
}
public partial class SampleViewModel : BaseViewModel
{
[ICommand]
private void GreetUser(object value)
{
}
}
}";
VerifyGeneratedDiagnostics<ICommandGenerator>(source, "MVVMTK0023");
}
Expected behavior
MVVMTK0023 is emitted.
Metadata
Metadata
Assignees
Labels
bug 🐛An unexpected issue that highlights incorrect behaviorAn unexpected issue that highlights incorrect behaviormvvm-toolkit 🧰Issues/PRs for the MVVM ToolkitIssues/PRs for the MVVM Toolkit