9 references to WRN_PatternBadSignature
Microsoft.CodeAnalysis.CSharp (5)
Binder\Binder_Statements.cs (1)
1342additionalDiagnostics.Add(ErrorCode.WRN_PatternBadSignature, initializer.Syntax.Location, initializer.Type, "fixed", patternMethodSymbol);
Binder\ForEachLoopBinder.cs (1)
1766diagnostics.Add(ErrorCode.WRN_PatternBadSignature, collectionSyntax.Location, enumeratorType, MessageID.IDS_Collection.Localize(), patternMemberCandidate);
Errors\ErrorFacts.cs (2)
298case ErrorCode.WRN_PatternBadSignature: 845or ErrorCode.WRN_PatternBadSignature
Generated\ErrorFacts.Generated.cs (1)
29case ErrorCode.WRN_PatternBadSignature:
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
CodeGen\UnsafeTests.cs (1)
5479Diagnostic(ErrorCode.WRN_PatternBadSignature, "new Fixable(1)").WithArguments("Fixable", "fixed", "Fixable.GetPinnableReference(int)").WithLocation(6, 25),
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (2)
Semantics\ExtensionTests.cs (2)
21317Diagnostic(ErrorCode.WRN_PatternBadSignature, "new C()").WithArguments("C", "collection", "C.GetEnumerator").WithLocation(3, 19), 21364Diagnostic(ErrorCode.WRN_PatternBadSignature, "new C()").WithArguments("C", "collection", "C.GetEnumerator").WithLocation(1, 19),
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\SemanticErrorTests.cs (1)
20072Diagnostic(ErrorCode.WRN_PatternBadSignature, "new Derived()").WithArguments("Derived", "collection", "Derived.GetEnumerator"),