dotnet/roslyn
SourceFieldSymbol.HasRuntimeSpecialName should check that containing type is enum
オープン
#23,058 opened on 2017/11/07
Area-CompilersBughelp wanted
Repository metrics
- Stars
- (20,414 個のスター)
- PR merge metrics
- (平均マージ 6d 17h) (30d で 256 merged PRs)
説明
It feels like we should at least check that the containing type is an enum.
internal sealed override bool HasRuntimeSpecialName
{
get
{
return this.Name == WellKnownMemberNames.EnumBackingFieldName;
}
}
Relates to https://github.com/dotnet/roslyn/pull/22664#discussion_r149507555