dotnet/roslyn
<inheritdoc cref> has bad default for `path` attribute, leading to senseless inherited doc
オープン
#45,994 opened on 2020/07/15
Area-IDEConcept-Continuous ImprovementIDE-IntelliSensehelp wanted
Repository metrics
- Stars
- (20,414 個のスター)
- PR merge metrics
- (平均マージ 6d 17h) (30d で 256 merged PRs)
説明
Version Used: 16.8 (30313.166.master)
Steps to Reproduce:
public class C
{
/// <param name="a"><inheritdoc cref="M(int,int)" path="/param[@name='a']"/></param>
public void M(int a)
{
if (a > 0)
{
}
}
/// <summary>summary</summary>
/// <param name="a">A description</param>
/// <param name="b">B description</param>
public void M(int a, int b)
{
if (a > 0 || b > 0)
{
}
}
}
Expected Behavior:
I expect the default path to provide the same meaning as the explicitly specified path, as shown here:

Actual Behavior:
Instead, I see a concatenation of all param docs together, with not so much as a delimiter:
