20 references to ERR_ProtectedInExtension
Microsoft.CodeAnalysis.CSharp (2)
Binder\Semantics\AccessCheck.cs (1)
699
return containingType.IsExtension ? ErrorCode.
ERR_ProtectedInExtension
Errors\ErrorFacts.cs (1)
2511
or ErrorCode.
ERR_ProtectedInExtension
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (18)
Semantics\ExtensionTests.cs (18)
44335
Diagnostic(ErrorCode.
ERR_ProtectedInExtension
, "M").WithArguments("E.extension(int).M()").WithLocation(5, 24),
44338
Diagnostic(ErrorCode.
ERR_ProtectedInExtension
, "P").WithArguments("E.extension(int).P").WithLocation(6, 23),
44341
Diagnostic(ErrorCode.
ERR_ProtectedInExtension
, "get").WithArguments("E.extension(int).P2.get").WithLocation(7, 35),
44344
Diagnostic(ErrorCode.
ERR_ProtectedInExtension
, "set").WithArguments("E.extension(int).P3.set").WithLocation(8, 45),
44350
Diagnostic(ErrorCode.
ERR_ProtectedInExtension
, "this").WithArguments("E.extension(int).this[int]").WithLocation(9, 23),
44356
Diagnostic(ErrorCode.
ERR_ProtectedInExtension
, "get").WithArguments("E.extension(int).this[int, int].get").WithLocation(10, 51));
44380
Diagnostic(ErrorCode.
ERR_ProtectedInExtension
, "M").WithArguments("E.extension(int).M()").WithLocation(5, 33),
44383
Diagnostic(ErrorCode.
ERR_ProtectedInExtension
, "P").WithArguments("E.extension(int).P").WithLocation(6, 32),
44386
Diagnostic(ErrorCode.
ERR_ProtectedInExtension
, "get").WithArguments("E.extension(int).P2.get").WithLocation(7, 44),
44389
Diagnostic(ErrorCode.
ERR_ProtectedInExtension
, "set").WithArguments("E.extension(int).P3.set").WithLocation(8, 54),
44395
Diagnostic(ErrorCode.
ERR_ProtectedInExtension
, "this").WithArguments("E.extension(int).this[int]").WithLocation(9, 32),
44401
Diagnostic(ErrorCode.
ERR_ProtectedInExtension
, "get").WithArguments("E.extension(int).this[int, int].get").WithLocation(10, 60));
44425
Diagnostic(ErrorCode.
ERR_ProtectedInExtension
, "M").WithArguments("E.extension(int).M()").WithLocation(5, 32),
44428
Diagnostic(ErrorCode.
ERR_ProtectedInExtension
, "P").WithArguments("E.extension(int).P").WithLocation(6, 31),
44431
Diagnostic(ErrorCode.
ERR_ProtectedInExtension
, "get").WithArguments("E.extension(int).P2.get").WithLocation(7, 43),
44434
Diagnostic(ErrorCode.
ERR_ProtectedInExtension
, "set").WithArguments("E.extension(int).P3.set").WithLocation(8, 53),
44440
Diagnostic(ErrorCode.
ERR_ProtectedInExtension
, "this").WithArguments("E.extension(int).this[int]").WithLocation(9, 31),
44446
Diagnostic(ErrorCode.
ERR_ProtectedInExtension
, "get").WithArguments("E.extension(int).this[int, int].get").WithLocation(10, 59));