16 references to ERR_BadVisIndexerReturn
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
611
case ErrorCode.
ERR_BadVisIndexerReturn
:
Symbols\Source\SourcePropertySymbol.cs (1)
459
diagnostics.Add((this.IsIndexer ? ErrorCode.
ERR_BadVisIndexerReturn
: ErrorCode.ERR_BadVisPropertyType), Location, this, type.Type);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (14)
Symbols\SymbolErrorTests.cs (14)
436
Diagnostic(ErrorCode.
ERR_BadVisIndexerReturn
, "this").WithArguments("A.this[object]", "InternalInterface").WithLocation(8, 30),
438
Diagnostic(ErrorCode.
ERR_BadVisIndexerReturn
, "this").WithArguments("A.this[string]", "A.ProtectedStruct").WithLocation(9, 28),
440
Diagnostic(ErrorCode.
ERR_BadVisIndexerReturn
, "this").WithArguments("A.this[double]", "A.PrivateClass").WithLocation(10, 25),
442
Diagnostic(ErrorCode.
ERR_BadVisIndexerReturn
, "this").WithArguments("A.this[string, string]", "A.ProtectedStruct").WithLocation(13, 30),
444
Diagnostic(ErrorCode.
ERR_BadVisIndexerReturn
, "this").WithArguments("A.this[double, double]", "A.PrivateClass").WithLocation(14, 27),
446
Diagnostic(ErrorCode.
ERR_BadVisIndexerReturn
, "this").WithArguments("A.B.this[object]", "InternalInterface").WithLocation(18, 34),
448
Diagnostic(ErrorCode.
ERR_BadVisIndexerReturn
, "this").WithArguments("A.B.this[double]", "A.PrivateClass").WithLocation(20, 29),
450
Diagnostic(ErrorCode.
ERR_BadVisIndexerReturn
, "this").WithArguments("A.B.this[double, double]", "A.PrivateClass").WithLocation(24, 31),
452
Diagnostic(ErrorCode.
ERR_BadVisIndexerReturn
, "this").WithArguments("C.this[string]", "C.ProtectedStruct").WithLocation(33, 28),
454
Diagnostic(ErrorCode.
ERR_BadVisIndexerReturn
, "this").WithArguments("C.this[double]", "C.PrivateClass").WithLocation(34, 25),
456
Diagnostic(ErrorCode.
ERR_BadVisIndexerReturn
, "this").WithArguments("C.this[string, string]", "C.ProtectedStruct").WithLocation(37, 30),
458
Diagnostic(ErrorCode.
ERR_BadVisIndexerReturn
, "this").WithArguments("C.this[double, double]", "C.PrivateClass").WithLocation(38, 27),
460
Diagnostic(ErrorCode.
ERR_BadVisIndexerReturn
, "this").WithArguments("C.D.this[double]", "C.PrivateClass").WithLocation(44, 29),
462
Diagnostic(ErrorCode.
ERR_BadVisIndexerReturn
, "this").WithArguments("C.D.this[double, double]", "C.PrivateClass").WithLocation(48, 31));