Skip to content

SA1135 inconsistent regarding use of aliases #3884

Open
@bjornhellander

Description

@bjornhellander

Consider the following code:

using Tasks = System.Threading.Tasks;

namespace TestStuff
{
    using T1 = Tasks.Task; // No warning here
    using T2 = System.ValueTuple<Tasks.Task, int>; // Warning here
}

SA1135 seems to allow the use of aliases in using directives. Since there is no warning for the use of Tasks.Task when defining T1, I would not expect a warning when defining T2 either.

Tested using version 1.2.0-beta.556

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions