@@ -509,7 +509,7 @@ private void Method() { }
509
509
}
510
510
511
511
[ Fact ]
512
- public async Task TypeForwardsAreProcessedAsync ( )
512
+ public async Task TypeForwardsAreProcessed1Async ( )
513
513
{
514
514
var source = @"
515
515
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.StringComparison))]
@@ -529,6 +529,34 @@ public async Task TypeForwardsAreProcessedAsync()
529
529
await this . VerifyCSharpDiagnosticAsync ( source , EmptyDiagnosticResults , CancellationToken . None ) . ConfigureAwait ( false ) ;
530
530
}
531
531
532
+ [ Fact ]
533
+ public async Task TypeForwardsAreProcessed2Async ( )
534
+ {
535
+ var source = @"
536
+ [assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.StringComparer))]
537
+ " ;
538
+ this . shippedText = $@ "
539
+ System.StringComparer (forwarded, contained in mscorlib)
540
+ static System.StringComparer.InvariantCulture.get -> System.StringComparer (forwarded, contained in mscorlib)
541
+ static System.StringComparer.InvariantCultureIgnoreCase.get -> System.StringComparer (forwarded, contained in mscorlib)
542
+ static System.StringComparer.CurrentCulture.get -> System.StringComparer (forwarded, contained in mscorlib)
543
+ static System.StringComparer.CurrentCultureIgnoreCase.get -> System.StringComparer (forwarded, contained in mscorlib)
544
+ static System.StringComparer.Ordinal.get -> System.StringComparer (forwarded, contained in mscorlib)
545
+ static System.StringComparer.OrdinalIgnoreCase.get -> System.StringComparer (forwarded, contained in mscorlib)
546
+ static System.StringComparer.Create(System.Globalization.CultureInfo culture, bool ignoreCase) -> System.StringComparer (forwarded, contained in mscorlib)
547
+ System.StringComparer.Compare(object x, object y) -> int (forwarded, contained in mscorlib)
548
+ System.StringComparer.Equals(object x, object y) -> bool (forwarded, contained in mscorlib)
549
+ System.StringComparer.GetHashCode(object obj) -> int (forwarded, contained in mscorlib)
550
+ abstract System.StringComparer.Compare(string x, string y) -> int (forwarded, contained in mscorlib)
551
+ abstract System.StringComparer.Equals(string x, string y) -> bool (forwarded, contained in mscorlib)
552
+ abstract System.StringComparer.GetHashCode(string obj) -> int (forwarded, contained in mscorlib)
553
+ System.StringComparer.StringComparer() -> void (forwarded, contained in mscorlib)
554
+ " ;
555
+ this . unshippedText = $@ "";
556
+
557
+ await this . VerifyCSharpDiagnosticAsync ( source , EmptyDiagnosticResults , CancellationToken . None ) . ConfigureAwait ( false ) ;
558
+ }
559
+
532
560
[ Fact ]
533
561
public async Task TestAvoidMultipleOverloadsWithOptionalParametersAsync ( )
534
562
{
0 commit comments