289 references to WRN_NullabilityMismatchInArgument
Microsoft.CodeAnalysis.CSharp (6)
Errors\ErrorFacts.cs (3)
34
nullableWarnings.Add(GetId(ErrorCode.
WRN_NullabilityMismatchInArgument
));
439
case ErrorCode.
WRN_NullabilityMismatchInArgument
:
1906
case ErrorCode.
WRN_NullabilityMismatchInArgument
:
FlowAnalysis\NullableWalker.cs (2)
9742
ReportDiagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
,
9759
ReportDiagnostic(forOutput ? ErrorCode.WRN_NullabilityMismatchInArgumentForOutput : ErrorCode.
WRN_NullabilityMismatchInArgument
,
Generated\ErrorFacts.Generated.cs (1)
213
case ErrorCode.
WRN_NullabilityMismatchInArgument
:
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (5)
Attributes\AttributeTests_Nullable.cs (5)
1107
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "x").WithArguments("B1", "A<object?>", "y", "void C.F(A<object> x, A<object?> y)").WithLocation(8, 14),
1110
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "y").WithArguments("B2", "A<object>", "x", "void C.F(A<object> x, A<object?> y)").WithLocation(9, 11));
1162
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "x").WithArguments("A", "I<object?>", "y", "void C.F(I<object> x, I<object?> y)").WithLocation(9, 14),
1165
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "y").WithArguments("B", "I<object>", "x", "void C.F(I<object> x, I<object?> y)").WithLocation(10, 11));
1212
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "b").WithArguments("B", "I<(object, object)>", "a", "void C.F(I<(object, object)> a, I<(object, object?)> b)").WithLocation(9, 11));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (277)
Semantics\NullableReferenceTypesTests.cs (277)
873
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "L(o2)").WithArguments("C<object>", "C<object?>", "index", "int C<object?>.this[C<object?> index]").WithLocation(11, 14),
876
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "L(o)").WithArguments("C<object?>", "C<object>", "index", "int C<object>.this[C<object> index]").WithLocation(13, 15)
5385
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "new C6()").WithArguments("C6", "Base<object?>", "b", "void Program.F(Base<object?> b)").WithLocation(15, 11),
5388
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "new C7()").WithArguments("C7", "Base<object?>", "b", "void Program.F(Base<object?> b)").WithLocation(16, 11),
5391
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "new C9()").WithArguments("C9", "Base<object?>", "b", "void Program.F(Base<object?> b)").WithLocation(18, 11));
5398
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "new C6()").WithArguments("C6", "Base<object?>", "b", "void Program.F(Base<object?> b)").WithLocation(15, 11),
5401
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "new C7()").WithArguments("C7", "Base<object?>", "b", "void Program.F(Base<object?> b)").WithLocation(16, 11),
5404
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "new C9()").WithArguments("C9", "Base<object?>", "b", "void Program.F(Base<object?> b)").WithLocation(18, 11));
5411
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "new C1()").WithArguments("C1", "Base<object?>", "b", "void Program.F(Base<object?> b)").WithLocation(10, 11),
5414
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "new C3()").WithArguments("C3", "Base<object?>", "b", "void Program.F(Base<object?> b)").WithLocation(12, 11),
5417
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "new C4()").WithArguments("C4", "Base<object?>", "b", "void Program.F(Base<object?> b)").WithLocation(13, 11),
5420
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "new C6()").WithArguments("C6", "Base<object?>", "b", "void Program.F(Base<object?> b)").WithLocation(15, 11),
5423
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "new C7()").WithArguments("C7", "Base<object?>", "b", "void Program.F(Base<object?> b)").WithLocation(16, 11),
5426
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "new C9()").WithArguments("C9", "Base<object?>", "b", "void Program.F(Base<object?> b)").WithLocation(18, 11));
6501
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "new object?[] { null }").WithArguments("object?[]", "object[]", "o", "MyAttribute.MyAttribute(params object[] o)").WithLocation(5, 5)
6524
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "new object?[] { null }").WithArguments("object?[]", "object[]", "o", "MyAttribute.MyAttribute(object[] o)").WithLocation(5, 5)
6914
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "new string?[]{ null }").WithArguments("string?[]", "string[]", "s", "MyAttribute.MyAttribute(string[] s)").WithLocation(8, 14)
6957
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, @"new []{ ""str"", null }").WithArguments("string?[]", "string[]", "s", "MyAttribute.MyAttribute(string[] s)").WithLocation(8, 14)
18842
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "y").WithArguments("I<object?>", "I<object>", "x", "void C.G(I<object> x, params I<object?>[] y)").WithLocation(7, 11),
18845
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "x").WithArguments("I<object>", "I<object?>", "y", "void C.G(I<object> x, params I<object?>[] y)").WithLocation(8, 14),
18848
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "x").WithArguments("I<object>", "I<object?>", "y", "void C.G(I<object> x, params I<object?>[] y)").WithLocation(8, 17),
18851
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "x").WithArguments("I<object>", "I<object?>", "y", "void C.G(I<object> x, params I<object?>[] y)").WithLocation(10, 14),
18857
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "z").WithArguments("I<object>", "I<object?>", "y", "void C.G(I<object> x, params I<object?>[] y)").WithLocation(10, 20),
18863
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "x").WithArguments("I<object>", "I<object?>", "y", "void C.G(I<object> x, params I<object?>[] y)").WithLocation(11, 14),
18866
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "y").WithArguments("I<object?>", "I<object>", "x", "void C.G(I<object> x, params I<object?>[] y)").WithLocation(11, 20),
18872
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "new[] { x, x }").WithArguments("I<object>[]", "I<object?>[]", "y", "void C.G(I<object> x, params I<object?>[] y)").WithLocation(15, 14),
18875
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "new[] { x, y, z }").WithArguments("I<object>[]", "I<object?>[]", "y", "void C.G(I<object> x, params I<object?>[] y)").WithLocation(19, 14),
18881
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "new[] { x, x }").WithArguments("I<object>[]", "I<object?>[]", "y", "void C.G(I<object> x, params I<object?>[] y)").WithLocation(20, 14),
18884
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "y").WithArguments("I<object?>", "I<object>", "x", "void C.G(I<object> x, params I<object?>[] y)").WithLocation(20, 33)
19535
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "x1").WithArguments("CL0<string?>", "CL0<string>", "x", "void C.M1(ref CL0<string> x)").WithLocation(12, 16),
19541
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "x3").WithArguments("CL0<string?>", "CL0<string>", "x", "void C.M3(CL0<string> x)").WithLocation(26, 12));
34054
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "s2").WithArguments("C<string>", "C<string?>", "s", "void C<T>.M(ref C<string?> s)").WithLocation(9, 15));
36754
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "i").WithArguments("I<object>", "I<object?>", "x", "void C.ThrowIfNull(I<object?> x, string? s)").WithLocation(8, 21)
54376
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "map").WithArguments("C<string, string>", "C<string, string?>", "dictionary", "string? Extensions.GetOrAdd<string, string?>(C<string, string?> dictionary, string key, Func<string, string?> function)").WithLocation(13, 9),
54379
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "map").WithArguments("C<string, string>", "C<string, string?>", "dictionary", "string? Extensions.GetOrAdd<string, string?>(C<string, string?> dictionary, string key, Func<string, string?> function)").WithLocation(14, 9),
54382
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "map").WithArguments("C<string, string>", "C<string, string?>", "dictionary", "string? Extensions.GetOrAdd<string, string?>(C<string, string?> dictionary, string key, Func<string, string?> function)").WithLocation(15, 9)
55716
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "x1 ?? y1").WithArguments("IIn<object>", "IIn<object?>", "x", "void C.FIn(IIn<object?>? x)").WithLocation(22, 14),
55719
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "y1 ?? x1").WithArguments("IIn<object>", "IIn<object?>", "x", "void C.FIn(IIn<object?>? x)").WithLocation(23, 14),
55728
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "FIn(x3) ?? FIn(y3)").WithArguments("IIn<object>", "IIn<object?>", "x", "void C.FIn(IIn<object?>? x)").WithLocation(34, 14),
55731
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "FIn(y3) ?? FIn(x3)").WithArguments("IIn<object>", "IIn<object?>", "x", "void C.FIn(IIn<object?>? x)").WithLocation(35, 14),
55734
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "FIn(x3) ?? FIn(y3)").WithArguments("IIn<object>", "IIn<object?>", "x", "void C.FIn(IIn<object?>? x)").WithLocation(37, 14),
59242
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "y").WithArguments("I<object>", "I<object?>", "y", "int C.this[I<string> x, I<object?> y]").WithLocation(7, 16),
59245
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "x").WithArguments("I<string?>", "I<string>", "x", "int C.this[I<string> x, I<object?> y]").WithLocation(15, 16));
59273
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "y").WithArguments("B<object?>", "A<object>", "item", "void List<A<object>>.Add(A<object> item)").WithLocation(11, 13));
60218
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "new { x = y, y = x }").WithArguments("<anonymous type: T? x, T y>", "<anonymous type: T x, T? y>", "y", "void Program.F<<anonymous type: T x, T? y>>(<anonymous type: T x, T? y> x, <anonymous type: T x, T? y> y)").WithLocation(9, 25),
60221
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "new { x = y, y = x }").WithArguments("<anonymous type: T? x, T y>", "<anonymous type: T x, T? y>", "y", "void Program.F<<anonymous type: T x, T? y>>(<anonymous type: T x, T? y> x, <anonymous type: T x, T? y> y)").WithLocation(11, 33),
60224
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "new { x, y }").WithArguments("<anonymous type: T x, T? y>", "<anonymous type: T? x, T y>", "y", "void Program.F<<anonymous type: T? x, T y>>(<anonymous type: T? x, T y> x, <anonymous type: T? x, T y> y)").WithLocation(13, 33));
65120
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "c").WithArguments("C<string?>", "C<string>", "c", "CustomHandler.CustomHandler(int literalLength, int formattedCount, C<string> c)").WithLocation(7, 1)
65377
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "c").WithArguments("C<string?>", "C<string>", "c", "CustomHandler.CustomHandler(int literalLength, int formattedCount, C<string> c)").WithLocation(7, 5)
70230
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "z").WithArguments("B<object>", "A<object?>", "a", "void C.G(A<object?> a)").WithLocation(18, 11)
70264
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "y").WithArguments("B<object?>", "A<object>", "a", "void C.G(params A<object>[] a)").WithLocation(16, 11)
70464
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "x").WithArguments("I<object>", "I<object?>", "x", "void C.G(I<object?> x, IIn<object?> y, IOut<object?> z)").WithLocation(8, 11),
70467
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "y").WithArguments("IIn<object>", "IIn<object?>", "y", "void C.G(I<object?> x, IIn<object?> y, IOut<object?> z)").WithLocation(8, 14),
70470
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "x").WithArguments("I<object?>", "I<object>", "x", "void C.F(I<object> x, IIn<object> y, IOut<object> z)").WithLocation(12, 11),
70473
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "z").WithArguments("IOut<object?>", "IOut<object>", "z", "void C.F(I<object> x, IIn<object> y, IOut<object> z)").WithLocation(12, 17));
70533
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "x").WithArguments("I<object>", "I<object?>", "x", "void C.G(ref I<object?> x, ref IIn<object?> y, ref IOut<object?> z)").WithLocation(8, 15),
70536
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "y").WithArguments("IIn<object>", "IIn<object?>", "y", "void C.G(ref I<object?> x, ref IIn<object?> y, ref IOut<object?> z)").WithLocation(8, 22),
70539
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "z").WithArguments("IOut<object>", "IOut<object?>", "z", "void C.G(ref I<object?> x, ref IIn<object?> y, ref IOut<object?> z)").WithLocation(8, 29),
70542
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "x").WithArguments("I<object?>", "I<object>", "x", "void C.F(ref I<object> x, ref IIn<object> y, ref IOut<object> z)").WithLocation(12, 15),
70545
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "y").WithArguments("IIn<object?>", "IIn<object>", "y", "void C.F(ref I<object> x, ref IIn<object> y, ref IOut<object> z)").WithLocation(12, 22),
70548
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "z").WithArguments("IOut<object?>", "IOut<object>", "z", "void C.F(ref I<object> x, ref IIn<object> y, ref IOut<object> z)").WithLocation(12, 29));
70573
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "x").WithArguments("I<object>", "I<object?>", "x", "void C.G(in I<object?> x, in IIn<object?> y, in IOut<object?> z)").WithLocation(8, 14),
70576
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "y").WithArguments("IIn<object>", "IIn<object?>", "y", "void C.G(in I<object?> x, in IIn<object?> y, in IOut<object?> z)").WithLocation(8, 20),
70579
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "x").WithArguments("I<object?>", "I<object>", "x", "void C.F(in I<object> x, in IIn<object> y, in IOut<object> z)").WithLocation(12, 14),
70582
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "z").WithArguments("IOut<object?>", "IOut<object>", "z", "void C.F(in I<object> x, in IIn<object> y, in IOut<object> z)").WithLocation(12, 26));
70638
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "x").WithArguments("I<object>", "I<object?>", "o", "void E.F2A(I<object?> o)").WithLocation(17, 9),
70641
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "y").WithArguments("I<object?>", "I<object>", "o", "void E.F2B(I<object> o)").WithLocation(20, 9),
70644
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "x").WithArguments("IIn<object>", "IIn<object?>", "o", "void E.F3A(IIn<object?> o)").WithLocation(26, 9),
70647
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "y").WithArguments("IOut<object?>", "IOut<object>", "o", "void E.F4B(IOut<object> o)").WithLocation(38, 9));
70725
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "y").WithArguments("I<object>", "I<object?>", "y", "object C.this[I<string> x, I<object?> y]").WithLocation(7, 16),
70728
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "x").WithArguments("I<string?>", "I<string>", "x", "object C.this[I<string> x, I<object?> y]").WithLocation(14, 16));
71683
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "y").WithArguments("I<object?>", "I<object>", "x", "I<object> C.operator +(I<object> x, C y)").WithLocation(12, 9),
71695
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "y").WithArguments("IOut<object?>", "IOut<object>", "x", "IOut<object> C.operator +(IOut<object> x, C y)").WithLocation(22, 9)
76145
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "y").WithArguments("D<object?>", "D<object>", "key", "void D<int>.Add(D<object>? key, params D<object>?[] value)").WithLocation(19, 28),
76148
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "y").WithArguments("D<object?>", "D<object>", "key", "void D<int>.Add(D<object>? key, params D<object>?[] value)").WithLocation(19, 32),
76154
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "x").WithArguments("C<object>", "C<object?>", "key", "void C<int>.Add(C<object?> key, params C<object?>[] value)").WithLocation(9, 28),
76157
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "x").WithArguments("C<object>", "C<object?>", "key", "void C<int>.Add(C<object?> key, params C<object?>[] value)").WithLocation(9, 31)
76249
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "x").WithArguments("C<object?>", "I<object>", "o", "void E.F1(I<object> o)").WithLocation(7, 9),
76252
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "y").WithArguments("C<object>", "I<object?>", "o", "void E.F2(I<object?> o)").WithLocation(9, 9)
76380
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "c").WithArguments("List<string?>", "List<string>", "b", "void C.F(ref List<string> a, ref List<string>? b, ref List<string?> c, ref List<string?>? d)").WithLocation(10, 22),
76389
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "a").WithArguments("List<string>", "List<string?>", "d", "void C.F(ref List<string> a, ref List<string>? b, ref List<string?> c, ref List<string?>? d)").WithLocation(10, 36),
76437
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "c").WithArguments("List<string?>", "List<string>", "b", "void C.F(ref List<string> a, ref List<string>? b, ref List<string?> c, ref List<string?>? d)").WithLocation(15, 22),
76452
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "a").WithArguments("List<string>", "List<string?>", "d", "void C.F(ref List<string> a, ref List<string>? b, ref List<string?> c, ref List<string?>? d)").WithLocation(15, 36),
80170
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "(x, y)").WithArguments("(string x, string? y)", "(string, string)", "t", "void E.F1A((string, string) t)").WithLocation(16, 13),
80173
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "(x, y)").WithArguments("(object x, object? y)", "(object, object)", "t", "void E.F1C((object, object) t)").WithLocation(18, 13),
80188
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "(x, y)").WithArguments("(A<object> x, A<object?> y)", "(A<object>, A<object>)", "t", "void E.F2A((A<object>, A<object>) t)").WithLocation(31, 13),
80191
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "(x, y)").WithArguments("(A<object> x, A<object?> y)", "(A<object?>, A<object?>)", "t", "void E.F2B((A<object?>, A<object?>) t)").WithLocation(32, 13),
80681
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "(x, y)").WithArguments("(string x, string? y)", "(object, object)", "t", "void E.F1A((object, object) t)").WithLocation(11, 9),
80684
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "(x, y)").WithArguments("(A<object> x, A<object?> y)", "(I<object>, I<object>)", "t", "void E.F2A((I<object>, I<object>) t)").WithLocation(18, 9),
80687
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "(x, y)").WithArguments("(A<object> x, A<object?> y)", "(I<object?>, I<object?>)", "t", "void E.F2B((I<object?>, I<object?>) t)").WithLocation(19, 9),
80690
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "(x, y)").WithArguments("(B<object> x, B<object?> y)", "(IIn<object?>, IIn<object?>)", "t", "void E.F3B((IIn<object?>, IIn<object?>) t)").WithLocation(26, 9),
80693
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "(x, y)").WithArguments("(C<object> x, C<object?> y)", "(IOut<object>, IOut<object>)", "t", "void E.F4A((IOut<object>, IOut<object>) t)").WithLocation(32, 9));
80741
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "t1").WithArguments("(string x, string?)", "(object, object)", "t", "void E.F1A((object, object) t)").WithLocation(11, 9),
80744
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "t2").WithArguments("(A<object>, A<object?>)", "(I<object>, I<object>)", "t", "void E.F2A((I<object>, I<object>) t)").WithLocation(18, 9),
80747
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "t2").WithArguments("(A<object>, A<object?>)", "(I<object?>, I<object?>)", "t", "void E.F2B((I<object?>, I<object?>) t)").WithLocation(19, 9),
80750
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "t3").WithArguments("(B<object>, B<object?>)", "(IIn<object?>, IIn<object?>)", "t", "void E.F3B((IIn<object?>, IIn<object?>) t)").WithLocation(26, 9),
80753
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "t4").WithArguments("(C<object>, C<object?>)", "(IOut<object>, IOut<object>)", "t", "void E.F4A((IOut<object>, IOut<object>) t)").WithLocation(32, 9));
80798
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "t1").WithArguments("(string, string)?", "(string?, string?)?", "t", "void E.F1A((string?, string?)? t)").WithLocation(8, 9),
80801
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "t2").WithArguments("(I<object?>, I<object?>)?", "(I<object>, I<object>)?", "t", "void E.F2B((I<object>, I<object>)? t)").WithLocation(16, 9),
80804
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "t3").WithArguments("(IIn<object?>, IIn<object?>)?", "(IIn<object>, IIn<object>)?", "t", "void E.F3B((IIn<object>, IIn<object>)? t)").WithLocation(23, 9),
80807
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "t4").WithArguments("(IOut<object?>, IOut<object?>)?", "(IOut<object>, IOut<object>)?", "t", "void E.F4B((IOut<object>, IOut<object>)? t)").WithLocation(30, 9));
80830
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "t").WithArguments("(string, (string, string)?)", "(object, (string?, string?)?)", "t", "void E.FA((object, (string?, string?)?) t)").WithLocation(5, 9));
80946
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "t1").WithArguments("(string, string)", "(string, string?)", "t", "string C.F<string>(ref (string, string?) t)").WithLocation(7, 15),
80949
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "t3").WithArguments("(string?, string)", "(string, string?)", "t", "string C.F<string>(ref (string, string?) t)").WithLocation(11, 15),
80952
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "t4").WithArguments("(string?, string?)", "(string, string?)", "t", "string C.F<string>(ref (string, string?) t)").WithLocation(13, 15));
81021
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "x").WithArguments("I<(string, string)>", "I<(string, string?)>", "t", "string C.F<string>(I<(string, string?)> t)").WithLocation(9, 11),
81024
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "z").WithArguments("I<(string?, string)>", "I<(string, string?)>", "t", "string C.F<string>(I<(string, string?)> t)").WithLocation(11, 11),
81027
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "w").WithArguments("I<(string?, string?)>", "I<(string, string?)>", "t", "string C.F<string>(I<(string, string?)> t)").WithLocation(12, 11),
81030
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "x").WithArguments("IIn<(string, string)>", "IIn<(string, string?)>", "t", "string C.F<string>(IIn<(string, string?)> t)").WithLocation(17, 11),
81033
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "z").WithArguments("IIn<(string?, string)>", "IIn<(string, string?)>", "t", "string C.F<string>(IIn<(string, string?)> t)").WithLocation(19, 11),
81036
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "w").WithArguments("IIn<(string?, string?)>", "IIn<(string, string?)>", "t", "string C.F<string>(IIn<(string, string?)> t)").WithLocation(20, 11),
81039
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "x").WithArguments("IOut<(string, string)>", "IOut<(string, string?)>", "t", "string C.F<string>(IOut<(string, string?)> t)").WithLocation(25, 11),
81042
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "z").WithArguments("IOut<(string?, string)>", "IOut<(string, string?)>", "t", "string C.F<string>(IOut<(string, string?)> t)").WithLocation(27, 11),
81045
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "w").WithArguments("IOut<(string?, string?)>", "IOut<(string, string?)>", "t", "string C.F<string>(IOut<(string, string?)> t)").WithLocation(28, 11)
81799
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "(y, x)").WithArguments("(object? y, object x)", "(object, object?)", "item6", "(object?, object, object?, object, object?, (object, object?), object, object, object?, object).ValueTuple(object? item1, object item2, object? item3, object item4, object? item5, (object, object?) item6, object item7, (object, object?, object) rest)").WithLocation(12, 13),
81802
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "(x, y, y)").WithArguments("(object x, object?, object?)", "(object, object?, object)", "rest", "(object?, object, object?, object, object?, (object, object?), object, object, object?, object).ValueTuple(object? item1, object item2, object? item3, object item4, object? item5, (object, object?) item6, object item7, (object, object?, object) rest)").WithLocation(14, 13),
84951
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "(y, x)").WithArguments("(string? y, string x)", "(string x, string? y)", "t", "C.C((string x, string? y) t)").WithLocation(9, 19),
84954
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "(y, y)").WithArguments("(string?, string?)", "(string x, string? y)", "t", "C.C((string x, string? y) t)").WithLocation(10, 19));
84980
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "(y, x)").WithArguments("(string? y, string x)", "(string x, string? y)", "t", "object? C.this[(string x, string? y) t]").WithLocation(10, 15),
84983
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "(y, y)").WithArguments("(string?, string?)", "(string x, string? y)", "t", "object? C.this[(string x, string? y) t]").WithLocation(11, 15),
84986
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "t").WithArguments("(string? y, string x)", "(string x, string? y)", "t", "object? C.this[(string x, string? y) t]").WithLocation(13, 15));
85011
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "(y, x)").WithArguments("(string? y, string x)", "(string, string?)", "item", "void List<(string, string?)>.Add((string, string?) item)").WithLocation(10, 13),
85014
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "(y, y)").WithArguments("(string?, string?)", "(string, string?)", "item", "void List<(string, string?)>.Add((string, string?) item)").WithLocation(11, 13));
88461
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "c").WithArguments("C<string>", "C<string?>", "c", "IEnumerator<int> CExt.GetEnumerator<string?>(C<string?> c, string? t = null)").WithLocation(8, 27)
89077
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "x1").WithArguments("I<string>", "I<string?>", "t", "string C.F1<string>(I<string?> t)").WithLocation(10, 12),
89080
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "x2").WithArguments("I<string>", "I<string?>", "t", "string C.F2<string>(I<string?> t)").WithLocation(19, 12));
89245
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "y1").WithArguments("I<string?>", "I<string>", "y", "I<string> C.F<I<string>>(I<string> x, I<string> y)").WithLocation(8, 15),
89248
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "y1").WithArguments("I<string?>", "I<string>", "x", "I<string> C.F<I<string>>(I<string> x, I<string> y)").WithLocation(10, 11)
89363
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "x1").WithArguments("I<IOut<string?>>", "I<IOut<string>>", "x", "I<IOut<string>> C.F<I<IOut<string>>>(I<IOut<string>> x, I<IOut<string>> y)").WithLocation(9, 11),
89366
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "x1").WithArguments("I<IOut<string?>>", "I<IOut<string>>", "y", "I<IOut<string>> C.F<I<IOut<string>>>(I<IOut<string>> x, I<IOut<string>> y)").WithLocation(11, 15)
89407
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "x").WithArguments("B<string?>", "B<string>", "x", "string C.F<string>(B<string> x, B<string> y)").WithLocation(8, 11),
89410
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "x").WithArguments("B<string?>", "B<string>", "y", "string C.F<string>(B<string> x, B<string> y)").WithLocation(10, 14)
89468
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "x").WithArguments("B<object?>", "B<object>", "x", "B<object> Program.F<B<object>>(B<object> x, B<object> y, B<object> z)").WithLocation(8, 11),
89471
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "x").WithArguments("B<object?>", "B<object>", "y", "B<object> Program.F<B<object>>(B<object> x, B<object> y, B<object> z)").WithLocation(8, 14),
89474
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "x").WithArguments("B<object?>", "B<object>", "x", "B<object> Program.F<B<object>>(B<object> x, B<object> y, B<object> z)").WithLocation(10, 11),
89477
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "x").WithArguments("B<object?>", "B<object>", "z", "B<object> Program.F<B<object>>(B<object> x, B<object> y, B<object> z)").WithLocation(10, 17),
89480
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "x").WithArguments("B<object?>", "B<object>", "x", "B<object> Program.F<B<object>>(B<object> x, B<object> y, B<object> z)").WithLocation(11, 11),
89483
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "x").WithArguments("B<object?>", "B<object>", "x", "B<object> Program.F<B<object>>(B<object> x, B<object> y, B<object> z)").WithLocation(12, 11),
89486
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "x").WithArguments("B<object?>", "B<object>", "x", "B<object> Program.F<B<object>>(B<object> x, B<object> y, B<object> z)").WithLocation(14, 11),
89489
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "x").WithArguments("B<object?>", "B<object>", "y", "B<object> Program.F<B<object>>(B<object> x, B<object> y, B<object> z)").WithLocation(16, 14),
89492
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "x").WithArguments("B<object?>", "B<object>", "z", "B<object> Program.F<B<object>>(B<object> x, B<object> y, B<object> z)").WithLocation(16, 17),
89495
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "x").WithArguments("B<object?>", "B<object>", "y", "B<object> Program.F<B<object>>(B<object> x, B<object> y, B<object> z)").WithLocation(17, 14),
89498
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "x").WithArguments("B<object?>", "B<object>", "y", "B<object> Program.F<B<object>>(B<object> x, B<object> y, B<object> z)").WithLocation(18, 14),
89501
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "x").WithArguments("B<object?>", "B<object>", "z", "B<object> Program.F<B<object>>(B<object> x, B<object> y, B<object> z)").WithLocation(19, 17),
89504
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "x").WithArguments("B<object?>", "B<object>", "z", "B<object> Program.F<B<object>>(B<object> x, B<object> y, B<object> z)").WithLocation(22, 17),
89507
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "x").WithArguments("B<object?>", "B<object>", "y", "B<object> Program.F<B<object>>(B<object> x, B<object> y, B<object> z)").WithLocation(26, 14),
89510
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "x").WithArguments("B<object?>", "B<object>", "z", "B<object> Program.F<B<object>>(B<object> x, B<object> y, B<object> z)").WithLocation(28, 17)
89550
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "CreateB(y)").WithArguments("B<string>", "B<string?>", "y", "string? C.F<string?>(string? x, B<string?> y)").WithLocation(9, 14)
89595
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "CreateB(x)").WithArguments("B<string?>", "B<string>", "y", "string C.F<string>(IIn<string> x, B<string> y)").WithLocation(13, 25)
89653
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "y1").WithArguments("IIn<object?, string?>", "IIn<object, string>", "y", "IIn<object, string> C.F<IIn<object, string>>(IIn<object, string> x, IIn<object, string> y)").WithLocation(8, 15),
89656
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "y1").WithArguments("IIn<object?, string?>", "IIn<object, string>", "x", "IIn<object, string> C.F<IIn<object, string>>(IIn<object, string> x, IIn<object, string> y)").WithLocation(10, 11),
89659
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "y2").WithArguments("IOut<object?, string?>", "IOut<object, string?>", "y", "IOut<object, string?> C.F<IOut<object, string?>>(IOut<object, string?> x, IOut<object, string?> y)").WithLocation(21, 15),
89662
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "y2").WithArguments("IOut<object?, string?>", "IOut<object, string?>", "x", "IOut<object, string?> C.F<IOut<object, string?>>(IOut<object, string?> x, IOut<object, string?> y)").WithLocation(23, 11)
89688
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "y").WithArguments("IOut<string?>", "IOut<object>", "y", "IOut<object> Program.F<IOut<object>>(IOut<object> x, IOut<object> y)").WithLocation(7, 14));
89727
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "CreateIIn(x1)").WithArguments("IIn<IIn<string?>>", "IIn<IIn<string>>", "z", "IIn<string> Program.FIn<IIn<string>>(IIn<string> x, IIn<string> y, IIn<IIn<string>> z)").WithLocation(11, 21),
89730
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "CreateIIn(y2)").WithArguments("IIn<IOut<string>>", "IIn<IOut<string?>>", "z", "IOut<string?> Program.FIn<IOut<string?>>(IOut<string?> x, IOut<string?> y, IIn<IOut<string?>> z)").WithLocation(19, 21));
89838
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "x").WithArguments("B<object?, string>", "B<object, string>", "x", "B<object, string> C.F<B<object, string>>(B<object, string> x, B<object, string> y)").WithLocation(13, 11),
89841
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "y").WithArguments("B<object, string?>", "B<object, string>", "y", "B<object, string> C.F<B<object, string>>(B<object, string> x, B<object, string> y)").WithLocation(13, 14),
89844
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "z").WithArguments("B<object?, string>", "B<object, string?>", "y", "B<object, string?> C.F<B<object, string?>>(B<object, string?> x, B<object, string?> y)").WithLocation(16, 14),
89847
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "y").WithArguments("B<object, string?>", "B<object, string>", "x", "B<object, string> C.F<B<object, string>>(B<object, string> x, B<object, string> y)").WithLocation(17, 11)
89894
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "x").WithArguments("IIn<B<object?, string>>", "IIn<B<object, string>>", "x", "B<object, string> C.F<B<object, string>>(IIn<B<object, string>> x, IIn<B<object, string>> y)").WithLocation(13, 11),
89897
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "y").WithArguments("IIn<B<object, string?>>", "IIn<B<object, string>>", "y", "B<object, string> C.F<B<object, string>>(IIn<B<object, string>> x, IIn<B<object, string>> y)").WithLocation(13, 14),
89900
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "z").WithArguments("IIn<B<object?, string>>", "IIn<B<object, string?>>", "y", "B<object, string?> C.F<B<object, string?>>(IIn<B<object, string?>> x, IIn<B<object, string?>> y)").WithLocation(16, 14),
89903
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "y").WithArguments("IIn<B<object, string?>>", "IIn<B<object, string>>", "x", "B<object, string> C.F<B<object, string>>(IIn<B<object, string>> x, IIn<B<object, string>> y)").WithLocation(17, 11)
90162
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "y1").WithArguments("I<(object?, string?)>", "I<(object, string)>", "y", "I<(object, string)> C.F<I<(object, string)>>(I<(object, string)> x, I<(object, string)> y)").WithLocation(12, 15),
90165
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "y1").WithArguments("I<(object?, string?)>", "I<(object, string)>", "x", "I<(object, string)> C.F<I<(object, string)>>(I<(object, string)> x, I<(object, string)> y)").WithLocation(14, 11),
90168
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "y2").WithArguments("IIn<(object?, string?)>", "IIn<(object, string)>", "y", "IIn<(object, string)> C.F<IIn<(object, string)>>(IIn<(object, string)> x, IIn<(object, string)> y)").WithLocation(26, 15),
90171
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "y2").WithArguments("IIn<(object?, string?)>", "IIn<(object, string)>", "x", "IIn<(object, string)> C.F<IIn<(object, string)>>(IIn<(object, string)> x, IIn<(object, string)> y)").WithLocation(28, 11),
90174
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "x3").WithArguments("IOut<(object, string)>", "IOut<(object?, string?)>", "x", "IOut<(object?, string?)> C.F<IOut<(object?, string?)>>(IOut<(object?, string?)> x, IOut<(object?, string?)> y)").WithLocation(40, 11),
90177
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "x3").WithArguments("IOut<(object, string)>", "IOut<(object?, string?)>", "y", "IOut<(object?, string?)> C.F<IOut<(object?, string?)>>(IOut<(object?, string?)> x, IOut<(object?, string?)> y)").WithLocation(42, 15));
90289
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "y1").WithArguments("I<string?>", "I<string>", "y", "string C.F<string>(I<string> x, I<string> y)").WithLocation(13, 15),
90292
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "y1").WithArguments("I<string?>", "I<string>", "x", "string C.F<string>(I<string> x, I<string> y)").WithLocation(14, 11),
90359
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "x1").WithArguments("I<string>", "I<string?>", "y", "string C.F<string>(I<string> x, I<string?> y)").WithLocation(12, 15),
90362
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "y1").WithArguments("I<string?>", "I<string>", "x", "string C.F<string>(I<string> x, I<string?> y)").WithLocation(14, 11),
90365
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "x1").WithArguments("I<string>", "I<string?>", "y", "string C.F<string>(I<string> x, I<string?> y)").WithLocation(14, 15),
90368
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "y1").WithArguments("I<string?>", "I<string>", "x", "string C.F<string>(I<string> x, I<string?> y)").WithLocation(15, 11),
90371
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "x2").WithArguments("IIn<string>", "IIn<string?>", "y", "string C.F<string>(IIn<string> x, IIn<string?> y)").WithLocation(23, 15),
90374
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "x2").WithArguments("IIn<string>", "IIn<string?>", "y", "string C.F<string>(IIn<string> x, IIn<string?> y)").WithLocation(25, 15),
90474
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "x7.A2").WithArguments("A<object?>", "A<object>", "x", "A<object> C.F<A<object>>(A<object> x, A<object> y)").WithLocation(30, 11),
90477
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "y8.A2").WithArguments("A<object?>", "A<object>", "y", "A<object> C.F<A<object>>(A<object> x, A<object> y)").WithLocation(34, 18)
93043
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "s").WithArguments("S", "(A, A?)?", "t", "void Program.F2((A, A?)? t)").WithLocation(16, 12));
104079
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "b2").WithArguments("ID<string>", "ID<string?>", "x", "void B.M1<ID<string?>>(ID<string?> x)").WithLocation(38, 25),
127569
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "a").WithArguments("A<object?>", "B", "b", "void Program.F(B b)").WithLocation(13, 11));
127599
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "b").WithArguments("B", "A<object?>", "a", "void Program.F(A<object?> a)").WithLocation(13, 11));
130083
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "p").WithArguments("Pair<object, object?>", "Pair<object?, object>", "p", "void E.Deconstruct(Pair<object?, object>? p, out object x, out object? y)").WithLocation(12, 34),
130280
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "b").WithArguments("B", "A<object?, object>", "a", "void E.Deconstruct(A<object?, object> a, out object? x, out object y)").WithLocation(15, 34),
130326
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "e").WithArguments("Pair<object, object?>", "Pair<object?, object>", "p", "void E.Deconstruct(Pair<object?, object> p, out object? x, out object y)").WithLocation(21, 40),
130335
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "e").WithArguments("Pair<object, object?>", "Pair<object?, object>", "p", "void E.Deconstruct(Pair<object?, object> p, out object? x, out object y)").WithLocation(26, 51),
130385
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "e").WithArguments("Pair<object, object?>", "Pair<object?, object>", "p", "void E.Deconstruct(Pair<object?, object> p, out object? x, out object y)").WithLocation(25, 40),
130394
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "e").WithArguments("Pair<object, object?>", "Pair<object?, object>", "p", "void E.Deconstruct(Pair<object?, object> p, out object? x, out object y)").WithLocation(30, 51),
132648
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "g").WithArguments("G<string?>", "G<string>", "o", "bool G<T>.M2(G<string> o)").WithLocation(8, 12),
132651
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "g").WithArguments("G<string?>", "G<string>", "o", "bool G<T>.M2(G<string> o)").WithLocation(14, 16),
134609
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "x").WithArguments("I<T>", "I<T?>", "x", "void C.Test2<T>(I<T?> x)").WithLocation(10, 15)
137342
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "z").WithArguments("C<T?>", "C<T>", "b", "C<T> C<T>.operator +(C<T> a, C<T> b)").WithLocation(44, 17),
137345
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "y").WithArguments("C<T>", "C<T?>", "b", "C<T?> C<T?>.operator +(C<T?> a, C<T?> b)").WithLocation(46, 17));
137407
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "z").WithArguments("C<T?>", "C<T>", "b", "C<T> C<T>.operator -(C<T> a, C<T> b)").WithLocation(44, 17),
137410
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "y").WithArguments("C<T>", "C<T?>", "b", "C<T?> C<T?>.operator -(C<T?> a, C<T?> b)").WithLocation(46, 17));
137475
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "z").WithArguments("C<T?>", "C<T>", "b", "C<T> C<T>.operator *(C<T> a, C<T> b)").WithLocation(47, 17),
137478
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "y").WithArguments("C<T>", "C<T?>", "b", "C<T?> C<T?>.operator *(C<T?> a, C<T?> b)").WithLocation(49, 17));
137530
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "z").WithArguments("C<T?>", "C<T>", "b", "C<T> C<T>.operator +(C<T> a, C<T> b)").WithLocation(34, 17),
137533
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "y").WithArguments("C<T>", "C<T?>", "b", "C<T?> C<T?>.operator +(C<T?> a, C<T?> b)").WithLocation(36, 17));
137584
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "z").WithArguments("C<T?>", "C<T>", "b", "C<T> C<T>.operator -(C<T> a, C<T> b)").WithLocation(33, 17),
137587
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "y").WithArguments("C<T>", "C<T?>", "b", "C<T?> C<T?>.operator -(C<T?> a, C<T?> b)").WithLocation(35, 17));
137643
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "z").WithArguments("C<T?>", "C<T>", "b", "C<T> C<T>.operator *(C<T> a, C<T> b)").WithLocation(38, 17),
137646
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "y").WithArguments("C<T>", "C<T?>", "b", "C<T?> C<T?>.operator *(C<T?> a, C<T?> b)").WithLocation(40, 17));
142212
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "y").WithArguments("I<object?>", "I<object>", "y", "object I<object>.operator +(I<object> x, I<object> y)").WithLocation(12, 21),
142215
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "x").WithArguments("I<object>", "I<object?>", "y", "object? I<object?>.operator +(I<object?> x, I<object?> y)").WithLocation(13, 17)
142501
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "by").WithArguments("B<T>", "B<T?>", "b", "A<T?> A<T?>.operator +(A<T?> a, B<T?> b)").WithLocation(25, 15),
142504
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "bx").WithArguments("B<T?>", "B<T>", "b", "A<T> A<T>.operator +(A<T> a, B<T> b)").WithLocation(26, 15),
142510
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "ax").WithArguments("A<T?>", "A<T>", "a", "A<T> B<T>.operator *(A<T> a, B<T> b)").WithLocation(29, 10),
142516
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "ay").WithArguments("A<T>", "A<T?>", "a", "A<T?> B<T?>.operator *(A<T?> a, B<T?> b)").WithLocation(30, 10));
142577
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "b1y").WithArguments("B1<T>", "B1<T?>", "b", "A1<T?> A1<T?>.operator +(A1<T?> a, B1<T?> b)").WithLocation(32, 16),
142580
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "b1x").WithArguments("B1<T?>", "B1<T>", "b", "A1<T> A1<T>.operator +(A1<T> a, B1<T> b)").WithLocation(33, 16),
142589
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "b2y").WithArguments("B2<T>", "B2<T?>", "b", "A2<T?> A2<T?>.operator *(A2<T?> a, B2<T?> b)").WithLocation(36, 16),
142592
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "b2x").WithArguments("B2<T?>", "B2<T>", "b", "A2<T> A2<T>.operator *(A2<T> a, B2<T> b)").WithLocation(37, 16));
142639
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "s1y").WithArguments("S<T>", "S<T?>", "y", "S<T?> S<T?>.operator +(S<T?> x, S<T?> y)").WithLocation(20, 16),
142642
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "s1x").WithArguments("S<T?>", "S<T>", "y", "S<T> S<T>.operator +(S<T> x, S<T> y)").WithLocation(21, 16),
142651
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "s2y").WithArguments("S<T>", "S<T?>", "y", "S<T?> S<T?>.operator +(S<T?> x, S<T?> y)").WithLocation(22, 16),
142657
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "s2x").WithArguments("S<T?>", "S<T>", "y", "S<T> S<T>.operator +(S<T> x, S<T> y)").WithLocation(23, 16),
142666
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "s1y").WithArguments("S<T>", "S<T?>", "y", "S<T?> S<T?>.operator +(S<T?> x, S<T?> y)").WithLocation(24, 16),
142672
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "s1x").WithArguments("S<T?>", "S<T>", "y", "S<T> S<T>.operator +(S<T> x, S<T> y)").WithLocation(25, 16),
142681
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "s2y").WithArguments("S<T>", "S<T?>", "y", "S<T?> S<T?>.operator +(S<T?> x, S<T?> y)").WithLocation(26, 16),
142687
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "s2x").WithArguments("S<T?>", "S<T>", "y", "S<T> S<T>.operator +(S<T> x, S<T> y)").WithLocation(27, 16));
142739
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "s1y").WithArguments("S<T>", "S<T?>?", "y", "S<T?>? S<T?>.operator +(S<T?> x, S<T?>? y)").WithLocation(21, 16),
142748
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "s2y").WithArguments("S<T>?", "S<T?>?", "y", "S<T?>? S<T?>.operator +(S<T?> x, S<T?>? y)").WithLocation(23, 16),
142751
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "s1x").WithArguments("S<T?>", "S<T>?", "y", "S<T>? S<T>.operator +(S<T> x, S<T>? y)").WithLocation(24, 16),
142754
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "s2x").WithArguments("S<T?>?", "S<T>?", "y", "S<T>? S<T>.operator +(S<T> x, S<T>? y)").WithLocation(25, 16),
142760
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "s1y").WithArguments("S<T>", "S<T?>", "y", "S<T?>? S<T?>.operator *(S<T?>? x, S<T?> y)").WithLocation(27, 16),
142763
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "s1x").WithArguments("S<T?>", "S<T>", "y", "S<T>? S<T>.operator *(S<T>? x, S<T> y)").WithLocation(28, 16),
142772
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "s1y").WithArguments("S<T>", "S<T?>", "y", "S<T?>? S<T?>.operator *(S<T?>? x, S<T?> y)").WithLocation(30, 16),
142775
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "s1x").WithArguments("S<T?>", "S<T>", "y", "S<T>? S<T>.operator *(S<T>? x, S<T> y)").WithLocation(31, 16));
142946
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "Create(x)").WithArguments("StructAwaitable<object>", "StructAwaitable<object?>", "s", "TaskAwaiter Program.GetAwaiter(StructAwaitable<object?> s)").WithLocation(13, 15));
143063
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "Create(x)").WithArguments("StructAwaitable1<object>", "StructAwaitable1<object?>", "s", "TaskAwaiter<bool> Program.GetAwaiter(StructAwaitable1<object?> s)").WithLocation(25, 33),
143066
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "Create(y)").WithArguments("StructAwaitable2<object?>", "StructAwaitable2<object>", "s", "TaskAwaiter Program.GetAwaiter(StructAwaitable2<object> s)").WithLocation(28, 33)
143114
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "Create(x)").WithArguments("StructAwaitable2<object>", "StructAwaitable2<object?>", "s", "TaskAwaiter Program.GetAwaiter(StructAwaitable2<object?> s)").WithLocation(25, 33),
143117
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "Create(y)").WithArguments("StructAwaitable1<object?>", "StructAwaitable1<object>", "s", "TaskAwaiter<bool> Program.GetAwaiter(StructAwaitable1<object> s)").WithLocation(28, 33)
148040
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "x").WithArguments("I<T>", "I<T?>", "t", "T A.F3<T>(I<T?> t)").WithLocation(9, 12),
148046
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "x").WithArguments("I<T>", "I<T?>", "t", "T? A.F4<T>(I<T?> t)").WithLocation(10, 12),
148084
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "x").WithArguments("I<T>", "I<T?>", "t", "T A.F3<T>(I<T?> t)").WithLocation(9, 12),
148090
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "x").WithArguments("I<T>", "I<T?>", "t", "T? A.F4<T>(I<T?> t)").WithLocation(10, 12),
148131
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "x").WithArguments("I<T>", "I<T?>", "t", "T A.F3<T>(I<T?> t)").WithLocation(9, 12),
148137
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "x").WithArguments("I<T>", "I<T?>", "t", "T? A.F4<T>(I<T?> t)").WithLocation(10, 12),
148207
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "x").WithArguments("I<T>", "I<T?>", "t", "T A.F3<T>(I<T?> t)").WithLocation(9, 12),
148213
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "x").WithArguments("I<T>", "I<T?>", "t", "T? A.F4<T>(I<T?> t)").WithLocation(10, 12),
148248
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "x").WithArguments("I<string>", "I<string?>", "t", "string A.F3<string>(I<string?> t)").WithLocation(9, 12),
148254
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "x").WithArguments("I<string>", "I<string?>", "t", "string? A.F4<string>(I<string?> t)").WithLocation(10, 12),
149399
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "y1").WithArguments("System.Collections.Generic.IEnumerable<T?>", "System.Collections.Generic.IEnumerable<T>", "e", "void C<T>.F1(IEnumerable<T> e)").WithLocation(10, 12),
149402
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "y2").WithArguments("System.Collections.Generic.List<T?>", "System.Collections.Generic.IEnumerable<T>", "e", "void C<T>.F1(IEnumerable<T> e)").WithLocation(17, 12));
149593
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "y6").WithArguments("I<T?>", "I<T>", "x", "void Program.FB<T>(ref I<T> x, ref I<T?> y)").WithLocation(29, 16),
149596
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "x6").WithArguments("I<T>", "I<T?>", "y", "void Program.FB<T>(ref I<T> x, ref I<T?> y)").WithLocation(29, 24),
149599
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "x8").WithArguments("I<T>", "I<T?>", "x", "void Program.FB<T?>(ref I<T?> x, ref I<T?> y)").WithLocation(37, 20));
154948
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "GetC2(s)").WithArguments("C2<string?>", "C2<string>", "t", "C1<string>.C1(C2<string> t)").WithLocation(10, 17),
155068
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "GetC2(s)").WithArguments("C2<string?>", "C2<string>", "t", "void C1<string>.Add(C2<string> t)").WithLocation(10, 22),
155071
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "GetC2(s)").WithArguments("C2<string?>", "C2<string>", "t", "void C1<string>.Add(C2<string> t)").WithLocation(12, 37),
155074
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, @"GetC2(""c1"")").WithArguments("C2<string>", "C2<string?>", "t", "void C1<string?>.Add(C2<string?> t)").WithLocation(15, 32),
155077
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, @"GetC2(""c2"")").WithArguments("C2<string>", "C2<string?>", "t", "void C1<string?>.Add(C2<string?> t)").WithLocation(17, 48)
155126
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "GetC2(s)").WithArguments("C2<string?>", "C2<string>", "t", "void C.Add<string>(C1<string> c, C2<string> t)").WithLocation(10, 22),
155129
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "GetC2(s)").WithArguments("C2<string?>", "C2<string>", "t", "void C.Add<string>(C1<string> c, C2<string> t)").WithLocation(12, 37),
155132
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, @"new() { GetC2(s), GetC2(""c1"")}").WithArguments("C1<string?>", "C1<string>", "c", "void C.Add<string>(C1<string> c, C2<string> t)").WithLocation(15, 14),
155135
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "C1<string?>").WithArguments("C1<string?>", "C1<string>", "c", "void C.Add<string>(C1<string> c, C2<string> t)").WithLocation(17, 22)
155287
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "GetC2(s)").WithArguments("C2<string?>", "C2<string>", "t", "C1<string>.C1(C2<string> t)").WithLocation(10, 17),
155407
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "GetC2(s)").WithArguments("C2<string?>", "C2<string>", "t", "void C1<string>.Add(C2<string> t)").WithLocation(10, 22),
155410
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "GetC2(s)").WithArguments("C2<string?>", "C2<string>", "t", "void C1<string>.Add(C2<string> t)").WithLocation(12, 53),
155413
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, @"GetC2(""c1"")").WithArguments("C2<string>", "C2<string?>", "t", "void C1<string?>.Add(C2<string?> t)").WithLocation(15, 32),
155416
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, @"GetC2(""c2"")").WithArguments("C2<string>", "C2<string?>", "t", "void C1<string?>.Add(C2<string?> t)").WithLocation(17, 65)
155465
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "GetC2(s)").WithArguments("C2<string?>", "C2<string>", "t", "void C.Add<string>(C1<string> c, C2<string> t)").WithLocation(10, 22),
155468
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "GetC2(s)").WithArguments("C2<string?>", "C2<string>", "t", "void C.Add<string>(C1<string> c, C2<string> t)").WithLocation(12, 53),
155471
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, @"new() { GetC2(s), GetC2(""c1"")}").WithArguments("C1<string?>", "C1<string>", "c", "void C.Add<string>(C1<string> c, C2<string> t)").WithLocation(15, 14),
155474
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "C1<string?>").WithArguments("C1<string?>", "C1<string>", "c", "void C.Add<string>(C1<string> c, C2<string> t)").WithLocation(17, 39)
155781
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "GetC2(s)").WithArguments("C2<string?>", "C2<string>", "t", "void C1<string>.Add(C2<string> t)").WithLocation(10, 24),
155784
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "GetC2(s)").WithArguments("C2<string?>", "C2<string>", "t", "void C1<string>.Add(C2<string> t)").WithLocation(12, 39),
155787
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, @"GetC2(""c1"")").WithArguments("C2<string>", "C2<string?>", "t", "void C1<string?>.Add(C2<string?> t)").WithLocation(15, 34),
155790
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, @"GetC2(""c2"")").WithArguments("C2<string>", "C2<string?>", "t", "void C1<string?>.Add(C2<string?> t)").WithLocation(17, 50)
155839
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "GetC2(s)").WithArguments("C2<string?>", "C2<string>", "t", "void C.Add<string>(C1<string> c, C2<string> t)").WithLocation(10, 24),
155842
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "GetC2(s)").WithArguments("C2<string?>", "C2<string>", "t", "void C.Add<string>(C1<string> c, C2<string> t)").WithLocation(12, 39),
155845
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, @"new(dd) { GetC2(s), GetC2(""c1"")}").WithArguments("C1<string?>", "C1<string>", "c", "void C.Add<string>(C1<string> c, C2<string> t)").WithLocation(15, 14),
155848
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgument
, "C1<string?>").WithArguments("C1<string?>", "C1<string>", "c", "void C.Add<string>(C1<string> c, C2<string> t)").WithLocation(17, 22)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Diagnostics\DiagnosticTest.cs (1)
342
case ErrorCode.
WRN_NullabilityMismatchInArgument
: