@@ -465,7 +465,7 @@ private void Method() { }
465
465
}
466
466
467
467
[ Fact ]
468
- public async Task TypeForwardsAreProcessedAsync ( )
468
+ public async Task TypeForwardsAreProcessed1Async ( )
469
469
{
470
470
var source = @"
471
471
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.StringComparison))]
@@ -485,6 +485,34 @@ public async Task TypeForwardsAreProcessedAsync()
485
485
await this . VerifyCSharpDiagnosticAsync ( source , EmptyDiagnosticResults , CancellationToken . None ) . ConfigureAwait ( false ) ;
486
486
}
487
487
488
+ [ Fact ]
489
+ public async Task TypeForwardsAreProcessed2Async ( )
490
+ {
491
+ var source = @"
492
+ [assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.StringComparer))]
493
+ " ;
494
+ this . shippedText = $@ "
495
+ System.StringComparer (forwarded, contained in mscorlib)
496
+ static System.StringComparer.InvariantCulture.get -> System.StringComparer (forwarded, contained in mscorlib)
497
+ static System.StringComparer.InvariantCultureIgnoreCase.get -> System.StringComparer (forwarded, contained in mscorlib)
498
+ static System.StringComparer.CurrentCulture.get -> System.StringComparer (forwarded, contained in mscorlib)
499
+ static System.StringComparer.CurrentCultureIgnoreCase.get -> System.StringComparer (forwarded, contained in mscorlib)
500
+ static System.StringComparer.Ordinal.get -> System.StringComparer (forwarded, contained in mscorlib)
501
+ static System.StringComparer.OrdinalIgnoreCase.get -> System.StringComparer (forwarded, contained in mscorlib)
502
+ static System.StringComparer.Create(System.Globalization.CultureInfo culture, bool ignoreCase) -> System.StringComparer (forwarded, contained in mscorlib)
503
+ System.StringComparer.Compare(object x, object y) -> int (forwarded, contained in mscorlib)
504
+ System.StringComparer.Equals(object x, object y) -> bool (forwarded, contained in mscorlib)
505
+ System.StringComparer.GetHashCode(object obj) -> int (forwarded, contained in mscorlib)
506
+ abstract System.StringComparer.Compare(string x, string y) -> int (forwarded, contained in mscorlib)
507
+ abstract System.StringComparer.Equals(string x, string y) -> bool (forwarded, contained in mscorlib)
508
+ abstract System.StringComparer.GetHashCode(string obj) -> int (forwarded, contained in mscorlib)
509
+ System.StringComparer.StringComparer() -> void (forwarded, contained in mscorlib)
510
+ " ;
511
+ this . unshippedText = $@ "";
512
+
513
+ await this . VerifyCSharpDiagnosticAsync ( source , EmptyDiagnosticResults , CancellationToken . None ) . ConfigureAwait ( false ) ;
514
+ }
515
+
488
516
[ Fact ]
489
517
public async Task TestAvoidMultipleOverloadsWithOptionalParametersAsync ( )
490
518
{
0 commit comments