You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
No warnings when using Tasks::Task instead in the original example.
Not in this example either, which also seems weird:
using System;
using Tasks = System.Threading.Tasks;
namespace TestStuff
{
using T2 = ValueTuple<Tasks::Task, int>; // No warning here because of ValueType not being fully qualified
}
Consider the following code:
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
The text was updated successfully, but these errors were encountered: