We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4d742cc + 196de75 commit 2d87f14Copy full SHA for 2d87f14
StyleCop.Analyzers/StyleCop.Analyzers.Test/ReadabilityRules/SA1135UnitTests.cs
@@ -441,5 +441,19 @@ namespace TestNamespace
441
";
442
await VerifyCSharpDiagnosticAsync(testCode, DiagnosticResult.EmptyDiagnosticResults, CancellationToken.None).ConfigureAwait(false);
443
}
444
+
445
+ [Fact]
446
+ [WorkItem(3166, "https://github.com/DotNetAnalyzers/StyleCopAnalyzers/issues/3166")]
447
+ public async Task TestAliasClrTypeAsync()
448
+ {
449
+ var testCode = @"
450
+namespace System
451
+{
452
+ using Float = System.Double;
453
+}
454
+";
455
456
+ await VerifyCSharpDiagnosticAsync(testCode, DiagnosticResult.EmptyDiagnosticResults, CancellationToken.None).ConfigureAwait(false);
457
+ }
458
459
0 commit comments