12 references to ERR_ParamsMemberCannotBeLessVisibleThanDeclaringMember
Microsoft.CodeAnalysis.CSharp (3)
Errors\ErrorFacts.cs (1)
2439
or ErrorCode.
ERR_ParamsMemberCannotBeLessVisibleThanDeclaringMember
Symbols\Source\SourceComplexParameterSymbol.cs (2)
1615
diagnostics.Add(ErrorCode.
ERR_ParamsMemberCannotBeLessVisibleThanDeclaringMember
, syntax, reportAsLessVisible, ContainingSymbol);
1670
diagnostics.Add(ErrorCode.
ERR_ParamsMemberCannotBeLessVisibleThanDeclaringMember
, syntax, method, ContainingSymbol);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (9)
Semantics\ParamsCollectionTests.cs (9)
883
Diagnostic(ErrorCode.
ERR_ParamsMemberCannotBeLessVisibleThanDeclaringMember
, "params MyCollection a").WithArguments("MyCollectionBuilder.Create(System.ReadOnlySpan<long>)", "Program.Test(params MyCollection)").WithLocation(24, 29)
942
Diagnostic(ErrorCode.
ERR_ParamsMemberCannotBeLessVisibleThanDeclaringMember
, "params MyCollection1 a").WithArguments("MyCollectionBuilder1.Create(System.ReadOnlySpan<long>)", "Program.Test1(params MyCollection1)").WithLocation(38, 30)
1568
Diagnostic(ErrorCode.
ERR_ParamsMemberCannotBeLessVisibleThanDeclaringMember
, "params MyCollection a").WithArguments("MyCollection.MyCollection()", "Program.Test(params MyCollection)").WithLocation(23, 29)
1701
Diagnostic(ErrorCode.
ERR_ParamsMemberCannotBeLessVisibleThanDeclaringMember
, "params MyCollection a").WithArguments("MyCollection.Add(long)", "Program.Test(params MyCollection)").WithLocation(22, 29)
1902
Diagnostic(ErrorCode.
ERR_ParamsMemberCannotBeLessVisibleThanDeclaringMember
, "params MyCollection a").WithArguments("MyCollection.Add(long)", "Program.Test(params MyCollection)").WithLocation(26, 29)
1947
Diagnostic(ErrorCode.
ERR_ParamsMemberCannotBeLessVisibleThanDeclaringMember
, "params MyCollection a").WithArguments("MyCollection.Add(int)", "Program.Test(params MyCollection)").WithLocation(28, 29)
1991
Diagnostic(ErrorCode.
ERR_ParamsMemberCannotBeLessVisibleThanDeclaringMember
, "params MyCollection a").WithArguments("MyCollection.Add(long)", "Program.Test(params MyCollection)").WithLocation(27, 29)
2202
Diagnostic(ErrorCode.
ERR_ParamsMemberCannotBeLessVisibleThanDeclaringMember
, "params MyCollection collection").WithArguments("MyCollection.MyCollection()", "Program.Test2(params MyCollection)").WithLocation(25, 23),
2205
Diagnostic(ErrorCode.
ERR_ParamsMemberCannotBeLessVisibleThanDeclaringMember
, "params MyCollection collection").WithArguments("MyCollection.Add(string)", "Program.Test2(params MyCollection)").WithLocation(25, 23)