12 references to ERR_ParamsMemberCannotBeLessVisibleThanDeclaringMember
Microsoft.CodeAnalysis.CSharp (3)
Errors\ErrorFacts.cs (1)
2437
or ErrorCode.
ERR_ParamsMemberCannotBeLessVisibleThanDeclaringMember
Symbols\Source\SourceComplexParameterSymbol.cs (2)
1680
diagnostics.Add(ErrorCode.
ERR_ParamsMemberCannotBeLessVisibleThanDeclaringMember
, syntax, reportAsLessVisible, ContainingSymbol);
1735
diagnostics.Add(ErrorCode.
ERR_ParamsMemberCannotBeLessVisibleThanDeclaringMember
, syntax, method, ContainingSymbol);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (9)
Semantics\ParamsCollectionTests.cs (9)
875
Diagnostic(ErrorCode.
ERR_ParamsMemberCannotBeLessVisibleThanDeclaringMember
, "params MyCollection a").WithArguments("MyCollectionBuilder.Create(System.ReadOnlySpan<long>)", "Program.Test(params MyCollection)").WithLocation(24, 29)
934
Diagnostic(ErrorCode.
ERR_ParamsMemberCannotBeLessVisibleThanDeclaringMember
, "params MyCollection1 a").WithArguments("MyCollectionBuilder1.Create(System.ReadOnlySpan<long>)", "Program.Test1(params MyCollection1)").WithLocation(38, 30)
1560
Diagnostic(ErrorCode.
ERR_ParamsMemberCannotBeLessVisibleThanDeclaringMember
, "params MyCollection a").WithArguments("MyCollection.MyCollection()", "Program.Test(params MyCollection)").WithLocation(23, 29)
1693
Diagnostic(ErrorCode.
ERR_ParamsMemberCannotBeLessVisibleThanDeclaringMember
, "params MyCollection a").WithArguments("MyCollection.Add(long)", "Program.Test(params MyCollection)").WithLocation(22, 29)
1894
Diagnostic(ErrorCode.
ERR_ParamsMemberCannotBeLessVisibleThanDeclaringMember
, "params MyCollection a").WithArguments("MyCollection.Add(long)", "Program.Test(params MyCollection)").WithLocation(26, 29)
1939
Diagnostic(ErrorCode.
ERR_ParamsMemberCannotBeLessVisibleThanDeclaringMember
, "params MyCollection a").WithArguments("MyCollection.Add(int)", "Program.Test(params MyCollection)").WithLocation(28, 29)
1983
Diagnostic(ErrorCode.
ERR_ParamsMemberCannotBeLessVisibleThanDeclaringMember
, "params MyCollection a").WithArguments("MyCollection.Add(long)", "Program.Test(params MyCollection)").WithLocation(27, 29)
2194
Diagnostic(ErrorCode.
ERR_ParamsMemberCannotBeLessVisibleThanDeclaringMember
, "params MyCollection collection").WithArguments("MyCollection.MyCollection()", "Program.Test2(params MyCollection)").WithLocation(25, 23),
2197
Diagnostic(ErrorCode.
ERR_ParamsMemberCannotBeLessVisibleThanDeclaringMember
, "params MyCollection collection").WithArguments("MyCollection.Add(string)", "Program.Test2(params MyCollection)").WithLocation(25, 23)