RedundantCastIssue false positive in null-coalescing operator #292

Open
opened 2013-08-22 16:36:07 -05:00 by riviti · 0 comments
riviti commented 2013-08-22 16:36:07 -05:00 (Migrated from github.com)

Apart from the description, AbstractResolvedEntity.DeclaringType demonstrates the bug. For somewhat added completeness, this is the implementation of that property:

public virtual IType DeclaringType {
    get { return parentContext.CurrentTypeDefinition ?? (IType)SpecialType.UnknownType; }
}
Apart from the description, AbstractResolvedEntity.DeclaringType demonstrates the bug. For somewhat added completeness, this is the implementation of that property: ``` public virtual IType DeclaringType { get { return parentContext.CurrentTypeDefinition ?? (IType)SpecialType.UnknownType; } } ```
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-icsharpcode/NRefactory#292
No description provided.