Promote to Generic Parameter is available here:
Tool GetTool(string toolName)
{
return null;
}
But not here:
Tool GetTool(string toolName)
{
return default;
}
Also not available here:
Tool GetTool(string id)
{
return new Tool(id);
}
Tool is declared as follows:
public class Tool
{
public Tool()
{
}
public Tool(string id)
{
Id = id;
}
public string Id { get; }
}