16 references to ERR_BadVisIndexerReturn
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
672
or ErrorCode.
ERR_BadVisIndexerReturn
Symbols\Source\SourcePropertySymbol.cs (1)
585
diagnostics.Add((this.IsIndexer ? ErrorCode.
ERR_BadVisIndexerReturn
: ErrorCode.ERR_BadVisPropertyType), Location, this, type.Type);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (14)
Symbols\SymbolErrorTests.cs (14)
437
Diagnostic(ErrorCode.
ERR_BadVisIndexerReturn
, "this").WithArguments("A.this[object]", "InternalInterface").WithLocation(8, 30),
439
Diagnostic(ErrorCode.
ERR_BadVisIndexerReturn
, "this").WithArguments("A.this[string]", "A.ProtectedStruct").WithLocation(9, 28),
441
Diagnostic(ErrorCode.
ERR_BadVisIndexerReturn
, "this").WithArguments("A.this[double]", "A.PrivateClass").WithLocation(10, 25),
443
Diagnostic(ErrorCode.
ERR_BadVisIndexerReturn
, "this").WithArguments("A.this[string, string]", "A.ProtectedStruct").WithLocation(13, 30),
445
Diagnostic(ErrorCode.
ERR_BadVisIndexerReturn
, "this").WithArguments("A.this[double, double]", "A.PrivateClass").WithLocation(14, 27),
447
Diagnostic(ErrorCode.
ERR_BadVisIndexerReturn
, "this").WithArguments("A.B.this[object]", "InternalInterface").WithLocation(18, 34),
449
Diagnostic(ErrorCode.
ERR_BadVisIndexerReturn
, "this").WithArguments("A.B.this[double]", "A.PrivateClass").WithLocation(20, 29),
451
Diagnostic(ErrorCode.
ERR_BadVisIndexerReturn
, "this").WithArguments("A.B.this[double, double]", "A.PrivateClass").WithLocation(24, 31),
453
Diagnostic(ErrorCode.
ERR_BadVisIndexerReturn
, "this").WithArguments("C.this[string]", "C.ProtectedStruct").WithLocation(33, 28),
455
Diagnostic(ErrorCode.
ERR_BadVisIndexerReturn
, "this").WithArguments("C.this[double]", "C.PrivateClass").WithLocation(34, 25),
457
Diagnostic(ErrorCode.
ERR_BadVisIndexerReturn
, "this").WithArguments("C.this[string, string]", "C.ProtectedStruct").WithLocation(37, 30),
459
Diagnostic(ErrorCode.
ERR_BadVisIndexerReturn
, "this").WithArguments("C.this[double, double]", "C.PrivateClass").WithLocation(38, 27),
461
Diagnostic(ErrorCode.
ERR_BadVisIndexerReturn
, "this").WithArguments("C.D.this[double]", "C.PrivateClass").WithLocation(44, 29),
463
Diagnostic(ErrorCode.
ERR_BadVisIndexerReturn
, "this").WithArguments("C.D.this[double, double]", "C.PrivateClass").WithLocation(48, 31));