32 references to WRN_TopLevelNullabilityMismatchInParameterTypeOnImplicitImplementation
Microsoft.CodeAnalysis.CSharp (5)
Errors\ErrorFacts.cs (3)
72
nullableWarnings.Add(GetId(ErrorCode.
WRN_TopLevelNullabilityMismatchInParameterTypeOnImplicitImplementation
));
484
case ErrorCode.
WRN_TopLevelNullabilityMismatchInParameterTypeOnImplicitImplementation
:
2040
or ErrorCode.
WRN_TopLevelNullabilityMismatchInParameterTypeOnImplicitImplementation
Generated\ErrorFacts.Generated.cs (1)
237
case ErrorCode.
WRN_TopLevelNullabilityMismatchInParameterTypeOnImplicitImplementation
:
Symbols\TypeSymbol.cs (1)
1857
ErrorCode.
WRN_TopLevelNullabilityMismatchInParameterTypeOnImplicitImplementation
:
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (24)
Semantics\NullableReferenceTypesTests.cs (23)
6182
Diagnostic(ErrorCode.
WRN_TopLevelNullabilityMismatchInParameterTypeOnImplicitImplementation
, "M").WithArguments("s", "void C.M(string s)", "void I.M(string? s)").WithLocation(10, 17)
15059
Diagnostic(ErrorCode.
WRN_TopLevelNullabilityMismatchInParameterTypeOnImplicitImplementation
, "set").WithArguments("value", "void B.P1.set", "void A.P1.set").WithLocation(25, 35),
15178
Diagnostic(ErrorCode.
WRN_TopLevelNullabilityMismatchInParameterTypeOnImplicitImplementation
, "A").WithArguments("value", "void B.P1.set", "void A.P1.set").WithLocation(31, 14),
15220
Diagnostic(ErrorCode.
WRN_TopLevelNullabilityMismatchInParameterTypeOnImplicitImplementation
, "A").WithArguments("value", "void B.P1.set", "void A.P1.set").WithLocation(14, 14)
15278
Diagnostic(ErrorCode.
WRN_TopLevelNullabilityMismatchInParameterTypeOnImplicitImplementation
, "set").WithArguments("value", "void C.P1.set", "void A.P1.set").WithLocation(15, 39),
16138
Diagnostic(ErrorCode.
WRN_TopLevelNullabilityMismatchInParameterTypeOnImplicitImplementation
, "M4").WithArguments("o", "void B.M4(ref object? o)", "void A.M4(ref object o)").WithLocation(20, 17),
16141
Diagnostic(ErrorCode.
WRN_TopLevelNullabilityMismatchInParameterTypeOnImplicitImplementation
, "M5").WithArguments("o", "void B.M5(out object? o)", "void A.M5(out object o)").WithLocation(21, 17),
16182
Diagnostic(ErrorCode.
WRN_TopLevelNullabilityMismatchInParameterTypeOnImplicitImplementation
, "M").WithArguments("o", "void C.M(object o)", "void B.M(object? o)").WithLocation(17, 17),
16191
Diagnostic(ErrorCode.
WRN_TopLevelNullabilityMismatchInParameterTypeOnImplicitImplementation
, "M4").WithArguments("o", "void C.M4(ref object o)", "void B.M4(ref object? o)").WithLocation(20, 17),
16194
Diagnostic(ErrorCode.
WRN_TopLevelNullabilityMismatchInParameterTypeOnImplicitImplementation
, "M6").WithArguments("o", "void C.M6(in object o)", "void B.M6(in object? o)").WithLocation(22, 17),
16197
Diagnostic(ErrorCode.
WRN_TopLevelNullabilityMismatchInParameterTypeOnImplicitImplementation
, "get").WithArguments("o", "object C.this[object o].get", "object? B.this[object? o].get").WithLocation(23, 36),
16200
Diagnostic(ErrorCode.
WRN_TopLevelNullabilityMismatchInParameterTypeOnImplicitImplementation
, "set").WithArguments("o", "void C.this[object o].set", "void B.this[object? o].set").WithLocation(23, 50),
16203
Diagnostic(ErrorCode.
WRN_TopLevelNullabilityMismatchInParameterTypeOnImplicitImplementation
, "set").WithArguments("value", "void C.this[object o].set", "void B.this[object? o].set").WithLocation(23, 50),
16206
Diagnostic(ErrorCode.
WRN_TopLevelNullabilityMismatchInParameterTypeOnImplicitImplementation
, "null!").WithArguments("s", "string C.this[string s].get", "string B.this[string? s].get").WithLocation(24, 37),
16209
Diagnostic(ErrorCode.
WRN_TopLevelNullabilityMismatchInParameterTypeOnImplicitImplementation
, "set").WithArguments("a", "void C.this[int[] a].set", "void B.this[int[]? a].set").WithLocation(25, 35)
16236
Diagnostic(ErrorCode.
WRN_TopLevelNullabilityMismatchInParameterTypeOnImplicitImplementation
, "get").WithArguments("o", "object D.this[object o].get", "object? B.this[object? o].get").WithLocation(14, 45)
16264
Diagnostic(ErrorCode.
WRN_TopLevelNullabilityMismatchInParameterTypeOnImplicitImplementation
, "B").WithArguments("o", "object C.this[object o].get", "object? B.this[object? o].get").WithLocation(10, 14)
29877
Diagnostic(ErrorCode.
WRN_TopLevelNullabilityMismatchInParameterTypeOnImplicitImplementation
, "M1").WithArguments("s", "void Implicit.M1(string s)", "void I.M1(string s)").WithLocation(10, 17),
38937
Diagnostic(ErrorCode.
WRN_TopLevelNullabilityMismatchInParameterTypeOnImplicitImplementation
, "ThrowIfNull").WithArguments("s", "void C.ThrowIfNull(int x, string? s)", "void Interface.ThrowIfNull(int x, string? s)").WithLocation(12, 17)
43463
Diagnostic(ErrorCode.
WRN_TopLevelNullabilityMismatchInParameterTypeOnImplicitImplementation
, "TryGetValue").WithArguments("t", "bool C<T>.TryGetValue(out T t)", "bool I<T>.TryGetValue(out T t)").WithLocation(11, 17)
138936
Diagnostic(ErrorCode.
WRN_TopLevelNullabilityMismatchInParameterTypeOnImplicitImplementation
, "Method").WithArguments("i", "void Class.Method(string i)", "void Interface<string>.Method(string? i)").WithLocation(12, 17));
138962
Diagnostic(ErrorCode.
WRN_TopLevelNullabilityMismatchInParameterTypeOnImplicitImplementation
, "Method").WithArguments("i", "void Class.Method(string i)", "void Interface<string>.Method(string? i)").WithLocation(12, 17));
139082
Diagnostic(ErrorCode.
WRN_TopLevelNullabilityMismatchInParameterTypeOnImplicitImplementation
, "Goo").WithArguments("value", "void C1.Goo<T>(T value)", "void I.Goo<T>(T? value)").WithLocation(10, 17),
Semantics\RefFieldTests.cs (1)
17798
Diagnostic(ErrorCode.
WRN_TopLevelNullabilityMismatchInParameterTypeOnImplicitImplementation
, "F1").WithArguments("t", "void C2.F1<T>(out T? t)", "void I.F1<T>(out T t)").WithLocation(14, 17),
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Symbols\ExtendedPartialMethodsTests.cs (1)
1648
Diagnostic(ErrorCode.
WRN_TopLevelNullabilityMismatchInParameterTypeOnImplicitImplementation
, "M").WithArguments("s1", "void C.M(string s1)", "void I.M(string s1)").WithLocation(13, 25));
Symbols\InterfaceImplementationTests.cs (1)
2488
Diagnostic(ErrorCode.
WRN_TopLevelNullabilityMismatchInParameterTypeOnImplicitImplementation
, "GetHashCode").WithArguments("obj", "int StringComparer.GetHashCode(string obj)", "int IEqualityComparer<string?>.GetHashCode(string? obj)").WithLocation(10, 16),
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Diagnostics\DiagnosticTest.cs (1)
388
case ErrorCode.
WRN_TopLevelNullabilityMismatchInParameterTypeOnImplicitImplementation
: