18 references to ERR_EventNotDelegate
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
681or ErrorCode.ERR_EventNotDelegate
Symbols\Source\SourceEventSymbol.cs (1)
668diagnostics.Add(ErrorCode.ERR_EventNotDelegate, location, this);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
CodeGen\CodeGenTupleTest.cs (1)
14411Diagnostic(ErrorCode.ERR_EventNotDelegate, "E1").WithArguments("Test<T>.E1").WithLocation(23, 74),
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (3)
FlowAnalysis\FlowDiagnosticTests.cs (1)
1008Diagnostic(ErrorCode.ERR_EventNotDelegate, "x").WithArguments("E<T>.x").WithLocation(23, 26)
Semantics\OutVarTests.cs (1)
22937(int)ErrorCode.ERR_EventNotDelegate,
Semantics\PatternMatchingTests_Scope.cs (1)
13678(int)ErrorCode.ERR_EventNotDelegate,
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (10)
Semantics\GenericConstraintsTests.cs (2)
3802Diagnostic(ErrorCode.ERR_EventNotDelegate, "field").WithArguments("MyStruct<T>.field").WithLocation(6, 52), 3837Diagnostic(ErrorCode.ERR_EventNotDelegate, "field").WithArguments("MyStruct<T>.field").WithLocation(7, 52),
Semantics\InheritanceBindingTests.cs (5)
1145Diagnostic(ErrorCode.ERR_EventNotDelegate, "Event1").WithArguments("Derived.Event1").WithLocation(17, 36), 1148Diagnostic(ErrorCode.ERR_EventNotDelegate, "Event3").WithArguments("Derived.Event3").WithLocation(19, 48), 1151Diagnostic(ErrorCode.ERR_EventNotDelegate, "Event5").WithArguments("Derived.Event5").WithLocation(21, 55), 1154Diagnostic(ErrorCode.ERR_EventNotDelegate, "Event6").WithArguments("Derived.Event6").WithLocation(22, 55), 1157Diagnostic(ErrorCode.ERR_EventNotDelegate, "Event7").WithArguments("Derived.Event7").WithLocation(23, 32),
Semantics\UnsafeTests.cs (3)
2904Diagnostic(ErrorCode.ERR_EventNotDelegate, "E").WithArguments("I.E"), 2906Diagnostic(ErrorCode.ERR_EventNotDelegate, "E1").WithArguments("C.E1"), 2908Diagnostic(ErrorCode.ERR_EventNotDelegate, "E2").WithArguments("C.E2"),
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Symbols\Source\EventTests.cs (1)
2046Diagnostic(ErrorCode.ERR_EventNotDelegate, "Changed").WithArguments("MyCollections.ListWithChangedEvent.Changed"),
Symbols\SymbolErrorTests.cs (1)
970Diagnostic(ErrorCode.ERR_EventNotDelegate, "Click").WithArguments("C.Click"),