209 references to WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
Microsoft.CodeAnalysis.CSharp (6)
Errors\ErrorFacts.cs (3)
37
nullableWarnings.Add(GetId(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
));
442
case ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
:
1908
case ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
:
FlowAnalysis\NullableWalker.cs (2)
7800
ReportDiagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, arg.location,
7867
ReportDiagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, location,
Generated\ErrorFacts.Generated.cs (1)
215
case ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
:
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (202)
Semantics\DelegateTypeTests.cs (2)
7016
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "object (object? x2) =>").WithArguments("x2", "lambda expression", "System.Func<object, object>").WithLocation(11, 21),
7025
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "object (object? y2) =>").WithArguments("y2", "lambda expression", "System.Func<object, object>").WithLocation(15, 21),
Semantics\LambdaTests.cs (26)
4474
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "([AllowNull] object o) =>").WithArguments("o", "lambda expression", "System.Action<object>").WithLocation(13, 29),
4477
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "([AllowNull] object o) =>").WithArguments("o", "lambda expression", "D1").WithLocation(14, 17),
4480
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "([AllowNull] object o) =>").WithArguments("o", "lambda expression", "D3").WithLocation(16, 17),
4483
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "([DisallowNull] object o) =>").WithArguments("o", "lambda expression", "D2").WithLocation(20, 17),
4486
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "([DisallowNull] object? o) =>").WithArguments("o", "lambda expression", "System.Action<object?>").WithLocation(23, 30),
4489
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "([DisallowNull] object? o) =>").WithArguments("o", "lambda expression", "D2").WithLocation(25, 18)
4524
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "(o) =>").WithArguments("o", "lambda expression", "D2").WithLocation(16, 17),
4527
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "(o) =>").WithArguments("o", "lambda expression", "D3").WithLocation(17, 17),
4570
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "bool ([MaybeNullWhen(false)] out object o) =>").WithArguments("o", "lambda expression", "D1").WithLocation(13, 17),
4573
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "bool ([MaybeNull] out object o) =>").WithArguments("o", "lambda expression", "D1").WithLocation(14, 17),
4576
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "bool (out object? o) =>").WithArguments("o", "lambda expression", "D1").WithLocation(15, 17),
4579
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "bool ([MaybeNullWhen(true)] out object o) =>").WithArguments("o", "lambda expression", "D2").WithLocation(17, 17),
4582
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "bool ([MaybeNull] out object o) =>").WithArguments("o", "lambda expression", "D2").WithLocation(19, 17),
4585
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "bool (out object? o) =>").WithArguments("o", "lambda expression", "D2").WithLocation(20, 17),
4588
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "bool ([MaybeNullWhen(true)] out object o) =>").WithArguments("o", "lambda expression", "D3").WithLocation(22, 17),
4591
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "bool ([MaybeNull] out object o) =>").WithArguments("o", "lambda expression", "D3").WithLocation(24, 18),
4594
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "bool (out object? o) =>").WithArguments("o", "lambda expression", "D3").WithLocation(25, 18)
4674
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "([AllowNull] object o) =>").WithArguments("o", "lambda expression", "System.Action<object>").WithLocation(13, 32),
4677
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "([AllowNull] object o) =>").WithArguments("o", "lambda expression", "D1").WithLocation(14, 20),
4680
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "([AllowNull] object o) =>").WithArguments("o", "lambda expression", "D3").WithLocation(16, 20),
4683
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "([DisallowNull] object o) =>").WithArguments("o", "lambda expression", "D2").WithLocation(20, 20),
4686
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "([DisallowNull] object? o) =>").WithArguments("o", "lambda expression", "System.Action<object?>").WithLocation(23, 33),
4689
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "([DisallowNull] object? o) =>").WithArguments("o", "lambda expression", "D2").WithLocation(25, 20)
4713
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "([AllowNull] x) =>").WithArguments("x", "lambda expression", "System.Action<object>").WithLocation(8, 29),
4719
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "([DisallowNull] x) =>").WithArguments("x", "lambda expression", "System.Action<object?>").WithLocation(9, 30)
4977
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "([NotNullWhen(true)] out object? obj) =>").WithArguments("obj", "lambda expression", "D").WithLocation(10, 15),
Semantics\NullableReferenceTypesTests.cs (174)
2229
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "M2").WithArguments("s", "string C.M2(string s)", "C.Copier").WithLocation(6, 20)
2254
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "(string? x) =>").WithArguments("x", "lambda expression", "C.Copier").WithLocation(7, 21),
2293
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "(string? x) =>").WithArguments("x", "lambda expression", "C.Copier").WithLocation(7, 27),
2329
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "(string x) =>").WithArguments("x", "lambda expression", "C.Copier").WithLocation(7, 21)
2362
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "(string x) =>").WithArguments("x", "lambda expression", "C.Copier").WithLocation(7, 27)
2450
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "(string? x) =>").WithArguments("x", "lambda expression", "System.Func<string, string>").WithLocation(11, 45),
2456
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "(string x) =>").WithArguments("x", "lambda expression", "System.Func<string?, string?>").WithLocation(12, 47),
2462
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "M2").WithArguments("x", "string C.M2(string x)", "System.Func<string?, string?>").WithLocation(14, 47));
2556
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "G").WithArguments("s", "object A.G(string s)", "System.Func<string?, object>").WithLocation(8, 13)
4428
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "(D)M2").WithArguments("s", "string C.M2(string s)", "C.D").WithLocation(14, 17)
11023
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "Method").WithArguments("x", "string[] C.Method(string[] x)", "MyNullableDelegate").WithLocation(24, 33),
11026
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "NullableReturnMethod").WithArguments("x", "string[]? C.NullableReturnMethod(string[] x)", "MyNullableDelegate").WithLocation(26, 33)
37718
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "([AllowNull]string x) =>").WithArguments("x", "lambda expression", "System.Action<string>").WithLocation(5, 10),
37724
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "([DisallowNull]string? x) =>").WithArguments("x", "lambda expression", "System.Action<string?>").WithLocation(10, 10),
37727
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "([MaybeNull]out string x) =>").WithArguments("x", "lambda expression", "<anonymous delegate>").WithLocation(16, 10),
37730
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "([NotNull]out string? x) =>").WithArguments("x", "lambda expression", "<anonymous delegate>").WithLocation(22, 10),
37745
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "([NotNull]string x) =>").WithArguments("x", "lambda expression", "System.Action<string>").WithLocation(38, 10),
40599
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "static bool ([NotNullWhen(true)] out T? y) =>").WithArguments("y", "lambda expression", "<anonymous delegate>").WithLocation(11, 18),
40605
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "static bool ([NotNullWhen(true)] out T? y) =>").WithArguments("y", "lambda expression", "<anonymous delegate>").WithLocation(21, 18),
40608
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "static bool ([NotNullWhen(true)] out T? y) =>").WithArguments("y", "lambda expression", "<anonymous delegate>").WithLocation(27, 18),
40614
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "static bool ([NotNullWhen(false)] out T? y) =>").WithArguments("y", "lambda expression", "<anonymous delegate>").WithLocation(33, 18),
40617
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "static bool ([NotNullWhen(false)] out T? y) =>").WithArguments("y", "lambda expression", "<anonymous delegate>").WithLocation(39, 18),
40623
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "static bool ([NotNull] T? x, [NotNullWhen(false)] out T? y) =>").WithArguments("x", "lambda expression", "<anonymous delegate>").WithLocation(45, 18),
40626
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "static bool ([NotNull] T? x, [NotNullWhen(false)] out T? y) =>").WithArguments("y", "lambda expression", "<anonymous delegate>").WithLocation(45, 18),
40687
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "void ([NotNull] int? i, [NotNull] int i2, [NotNull] TStruct? s, [NotNull] TStruct s2, [NotNull] TNotNull n) =>").WithArguments("i", "lambda expression", "System.Action<int?, int, TStruct?, TStruct, TNotNull>").WithLocation(10, 17),
40690
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "void ([NotNull] int? i, [NotNull] int i2, [NotNull] TStruct? s, [NotNull] TStruct s2, [NotNull] TNotNull n) =>").WithArguments("i2", "lambda expression", "System.Action<int?, int, TStruct?, TStruct, TNotNull>").WithLocation(10, 17),
40693
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "void ([NotNull] int? i, [NotNull] int i2, [NotNull] TStruct? s, [NotNull] TStruct s2, [NotNull] TNotNull n) =>").WithArguments("s", "lambda expression", "System.Action<int?, int, TStruct?, TStruct, TNotNull>").WithLocation(10, 17),
40696
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "void ([NotNull] int? i, [NotNull] int i2, [NotNull] TStruct? s, [NotNull] TStruct s2, [NotNull] TNotNull n) =>").WithArguments("s2", "lambda expression", "System.Action<int?, int, TStruct?, TStruct, TNotNull>").WithLocation(10, 17),
40699
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "void ([NotNull] int? i, [NotNull] int i2, [NotNull] TStruct? s, [NotNull] TStruct s2, [NotNull] TNotNull n) =>").WithArguments("n", "lambda expression", "System.Action<int?, int, TStruct?, TStruct, TNotNull>").WithLocation(10, 17),
55488
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "(string s) =>").WithArguments("s", "lambda expression", "System.Action<string?>").WithLocation(3, 29)
61254
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "(CL1 p1) =>").WithArguments("p1", "lambda expression", "System.Action<CL1?>").WithLocation(12, 34),
61260
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "delegate (CL1 p2) { p2 = M1(); }").WithArguments("p2", "anonymous method", "System.Action<CL1?>").WithLocation(17, 34),
61266
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "(CL1 p3) =>").WithArguments("p3", "lambda expression", "C.D1").WithLocation(24, 17),
61272
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "delegate (CL1 p4) { p4 = M1(); }").WithArguments("p4", "anonymous method", "C.D1").WithLocation(29, 17)
61318
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "(CL1? p1) =>").WithArguments("p1", "lambda expression", "System.Action<CL1>").WithLocation(12, 33),
61321
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "delegate (CL1? p2) { p2 = M1(); }").WithArguments("p2", "anonymous method", "System.Action<CL1>").WithLocation(17, 33),
61324
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "(CL1? p3) =>").WithArguments("p3", "lambda expression", "C.D1").WithLocation(24, 17),
61327
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "delegate (CL1? p4) { p4 = M1(); }").WithArguments("p4", "anonymous method", "C.D1").WithLocation(29, 17)
61462
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "(CL1<string> p1) =>").WithArguments("p1", "lambda expression", "System.Action<CL1<string?>>").WithLocation(10, 42),
61465
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "(CL1<string?> p2) =>").WithArguments("p2", "lambda expression", "System.Action<CL1<string>>").WithLocation(15, 41)
61499
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "(CL1<string> p1) =>").WithArguments("p1", "lambda expression", "System.Action<CL1<string?>>").WithLocation(12, 54),
61502
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "(CL1<string?> p2) =>").WithArguments("p2", "lambda expression", "System.Action<CL1<string>>").WithLocation(17, 53)
61530
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "(string s1) =>").WithArguments("s1", "lambda expression", "D<string?>").WithLocation(6, 31),
61536
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "(string? s2) =>").WithArguments("s2", "lambda expression", "D<string>").WithLocation(7, 30),
62884
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "(object o) =>").WithArguments("o", "lambda expression", "D<object?>").WithLocation(7, 24),
62887
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "(object? o) =>").WithArguments("o", "lambda expression", "D<object>").WithLocation(8, 23),
62890
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "(I<object> o) =>").WithArguments("o", "lambda expression", "D<I<object?>>").WithLocation(9, 27),
62893
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "(I<object?> o) =>").WithArguments("o", "lambda expression", "D<I<object>>").WithLocation(10, 26));
65747
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "M2").WithArguments("x", "CL0<string> C.M2(CL0<string> x)", "C.D1").WithLocation(15, 24),
65753
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "M4").WithArguments("x", "CL0<string?> C.M4(CL0<string?> x)", "C.D2").WithLocation(25, 24)
66045
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "(object? t2) =>").WithArguments("t2", "lambda expression", "D<object>").WithLocation(10, 27),
66048
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "(object t2) =>").WithArguments("t2", "lambda expression", "D<object?>").WithLocation(11, 28),
66051
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "(I<object?> t2) =>").WithArguments("t2", "lambda expression", "D<I<object>>").WithLocation(12, 30),
66054
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "(I<object> t2) =>").WithArguments("t2", "lambda expression", "D<I<object?>>").WithLocation(13, 31),
66057
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "(IIn<object?> t2) =>").WithArguments("t2", "lambda expression", "D<IIn<object>>").WithLocation(14, 32),
66060
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "(IIn<object> t2) =>").WithArguments("t2", "lambda expression", "D<IIn<object?>>").WithLocation(15, 33),
66063
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "(IOut<object?> t2) =>").WithArguments("t2", "lambda expression", "D<IOut<object>>").WithLocation(16, 33),
66066
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "(IOut<object> t2) =>").WithArguments("t2", "lambda expression", "D<IOut<object?>>").WithLocation(17, 34));
66098
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "F<object>").WithArguments("t2", "void C.F<object>(object t2)", "D<object?>").WithLocation(12, 28),
66101
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "F<I<object?>>").WithArguments("t2", "void C.F<I<object?>>(I<object?> t2)", "D<I<object>>").WithLocation(13, 30),
66104
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "F<I<object>>").WithArguments("t2", "void C.F<I<object>>(I<object> t2)", "D<I<object?>>").WithLocation(14, 31),
66107
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "F<IIn<object?>>").WithArguments("t2", "void C.F<IIn<object?>>(IIn<object?> t2)", "D<IIn<object>>").WithLocation(15, 32),
66110
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "F<IOut<object>>").WithArguments("t2", "void C.F<IOut<object>>(IOut<object> t2)", "D<IOut<object?>>").WithLocation(18, 34));
66141
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "(out object? t2) =>").WithArguments("t2", "lambda expression", "D<object>").WithLocation(10, 27),
66144
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "(out object t2) =>").WithArguments("t2", "lambda expression", "D<object?>").WithLocation(11, 28),
66147
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "(out I<object?> t2) =>").WithArguments("t2", "lambda expression", "D<I<object>>").WithLocation(12, 30),
66150
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "(out I<object> t2) =>").WithArguments("t2", "lambda expression", "D<I<object?>>").WithLocation(13, 31),
66153
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "(out IIn<object?> t2) =>").WithArguments("t2", "lambda expression", "D<IIn<object>>").WithLocation(14, 32),
66156
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "(out IIn<object> t2) =>").WithArguments("t2", "lambda expression", "D<IIn<object?>>").WithLocation(15, 33),
66159
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "(out IOut<object?> t2) =>").WithArguments("t2", "lambda expression", "D<IOut<object>>").WithLocation(16, 33),
66162
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "(out IOut<object> t2) =>").WithArguments("t2", "lambda expression", "D<IOut<object?>>").WithLocation(17, 34));
66194
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "F<object?>").WithArguments("t2", "void C.F<object?>(out object? t2)", "D<object>").WithLocation(11, 27),
66197
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "F<I<object?>>").WithArguments("t2", "void C.F<I<object?>>(out I<object?> t2)", "D<I<object>>").WithLocation(13, 30),
66200
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "F<I<object>>").WithArguments("t2", "void C.F<I<object>>(out I<object> t2)", "D<I<object?>>").WithLocation(14, 31),
66203
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "F<IIn<object>>").WithArguments("t2", "void C.F<IIn<object>>(out IIn<object> t2)", "D<IIn<object?>>").WithLocation(16, 33),
66206
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "F<IOut<object?>>").WithArguments("t2", "void C.F<IOut<object?>>(out IOut<object?> t2)", "D<IOut<object>>").WithLocation(17, 33));
66237
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "(in object? t2) =>").WithArguments("t2", "lambda expression", "D<object>").WithLocation(10, 27),
66240
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "(in object t2) =>").WithArguments("t2", "lambda expression", "D<object?>").WithLocation(11, 28),
66243
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "(in I<object?> t2) =>").WithArguments("t2", "lambda expression", "D<I<object>>").WithLocation(12, 30),
66246
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "(in I<object> t2) =>").WithArguments("t2", "lambda expression", "D<I<object?>>").WithLocation(13, 31),
66249
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "(in IIn<object?> t2) =>").WithArguments("t2", "lambda expression", "D<IIn<object>>").WithLocation(14, 32),
66252
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "(in IIn<object> t2) =>").WithArguments("t2", "lambda expression", "D<IIn<object?>>").WithLocation(15, 33),
66255
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "(in IOut<object?> t2) =>").WithArguments("t2", "lambda expression", "D<IOut<object>>").WithLocation(16, 33),
66258
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "(in IOut<object> t2) =>").WithArguments("t2", "lambda expression", "D<IOut<object?>>").WithLocation(17, 34));
66290
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "F<object>").WithArguments("t2", "void C.F<object>(in object t2)", "D<object?>").WithLocation(12, 28),
66293
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "F<I<object?>>").WithArguments("t2", "void C.F<I<object?>>(in I<object?> t2)", "D<I<object>>").WithLocation(13, 30),
66296
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "F<I<object>>").WithArguments("t2", "void C.F<I<object>>(in I<object> t2)", "D<I<object?>>").WithLocation(14, 31),
66299
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "F<IIn<object?>>").WithArguments("t2", "void C.F<IIn<object?>>(in IIn<object?> t2)", "D<IIn<object>>").WithLocation(15, 32),
66302
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "F<IOut<object>>").WithArguments("t2", "void C.F<IOut<object>>(in IOut<object> t2)", "D<IOut<object?>>").WithLocation(18, 34));
66332
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "(ref object? t) =>").WithArguments("t", "lambda expression", "D<object>").WithLocation(9, 27),
66335
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "(ref object t) =>").WithArguments("t", "lambda expression", "D<object?>").WithLocation(10, 28),
66338
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "(ref I<object?> t) =>").WithArguments("t", "lambda expression", "D<I<object>>").WithLocation(11, 30),
66341
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "(ref I<object> t) =>").WithArguments("t", "lambda expression", "D<I<object?>>").WithLocation(12, 31),
66344
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "(ref IIn<object?> t) =>").WithArguments("t", "lambda expression", "D<IIn<object>>").WithLocation(13, 32),
66347
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "(ref IIn<object> t) =>").WithArguments("t", "lambda expression", "D<IIn<object?>>").WithLocation(14, 33),
66350
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "(ref IOut<object?> t) =>").WithArguments("t", "lambda expression", "D<IOut<object>>").WithLocation(15, 33),
66353
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "(ref IOut<object> t) =>").WithArguments("t", "lambda expression", "D<IOut<object?>>").WithLocation(16, 34));
66384
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "F<object?>").WithArguments("t", "void C.F<object?>(ref object? t)", "D<object>").WithLocation(10, 27),
66387
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "F<object>").WithArguments("t", "void C.F<object>(ref object t)", "D<object?>").WithLocation(11, 28),
66390
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "F<I<object?>>").WithArguments("t", "void C.F<I<object?>>(ref I<object?> t)", "D<I<object>>").WithLocation(12, 30),
66393
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "F<I<object>>").WithArguments("t", "void C.F<I<object>>(ref I<object> t)", "D<I<object?>>").WithLocation(13, 31),
66396
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "F<IIn<object?>>").WithArguments("t", "void C.F<IIn<object?>>(ref IIn<object?> t)", "D<IIn<object>>").WithLocation(14, 32),
66399
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "F<IIn<object>>").WithArguments("t", "void C.F<IIn<object>>(ref IIn<object> t)", "D<IIn<object?>>").WithLocation(15, 33),
66402
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "F<IOut<object?>>").WithArguments("t", "void C.F<IOut<object?>>(ref IOut<object?> t)", "D<IOut<object>>").WithLocation(16, 33),
66405
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "F<IOut<object>>").WithArguments("t", "void C.F<IOut<object>>(ref IOut<object> t)", "D<IOut<object?>>").WithLocation(17, 34));
66484
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "a1").WithArguments("obj", "void Action<string>.Invoke(string obj)", "D2").WithLocation(13, 20),
66487
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "d1").WithArguments("s", "void D1.Invoke(string s)", "D2").WithLocation(19, 20),
66490
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "d1").WithArguments("s", "void D1.Invoke(string s)", "System.Action<string?>").WithLocation(25, 33),
66493
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "a1").WithArguments("obj", "void Action<string>.Invoke(string obj)", "System.Action<string?>").WithLocation(31, 33));
66618
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "c.M2").WithArguments("s2", "void C.M2(string? s2)", "System.Action<string?>").WithLocation(20, 33),
66621
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "c.M3").WithArguments("s2", "void Program.M3(C c, string? s2)", "System.Action<string?>").WithLocation(21, 33)
66662
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "c.M2").WithArguments("s", "void C.M2(out string? s)", "D1").WithLocation(22, 20),
66665
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "c.M3").WithArguments("s", "void C.M3(out string s)", "D1").WithLocation(23, 20),
66668
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "c.M4").WithArguments("s", "bool C.M4(out string s)", "D2").WithLocation(24, 20),
66671
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "c.M6").WithArguments("s", "void C.M6(ref string s)", "D3").WithLocation(26, 20)
66706
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "c.M1").WithArguments("s", "void C.M1(string s)", "D1").WithLocation(17, 20),
66773
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "c.M3").WithArguments("s2", "void C.M3(object? s2)", "System.Action<string?>").WithLocation(33, 33),
66779
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "c.M7").WithArguments("s2", "void Program.M7(C c, object? s2)", "System.Action<string?>").WithLocation(43, 33)
67070
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "Helper.Method1").WithArguments("y", "void Helper.Method1(string? x, out string? y)", "D4").WithLocation(34, 16),
67073
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "Helper.Method2").WithArguments("z", "void Helper.Method2(string? x, out string? y, out string? z)", "D7").WithLocation(46, 16),
67076
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "Helper.Method3").WithArguments("y", "void Helper.Method3(string? x, out string? y, out string? z)", "D9").WithLocation(54, 16),
67079
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "Helper.Method3").WithArguments("z", "void Helper.Method3(string? x, out string? y, out string? z)", "D9").WithLocation(54, 16)
67192
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "Helper.Method1").WithArguments("z", "void Helper.Method1(string? x, string? y, out string? z)", "Del<string?, string?, string>").WithLocation(24, 16)
67468
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "F<object>").WithArguments("t", "void C.F<object>(object t)", "D<object?>").WithLocation(11, 24),
67471
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "F<I<object?>>").WithArguments("t", "void C.F<I<object?>>(I<object?> t)", "D<I<object>>").WithLocation(12, 26),
67474
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "F<I<object>>").WithArguments("t", "void C.F<I<object>>(I<object> t)", "D<I<object?>>").WithLocation(13, 27),
67477
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "F<IIn<object?>>").WithArguments("t", "void C.F<IIn<object?>>(IIn<object?> t)", "D<IIn<object>>").WithLocation(14, 28),
67480
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "F<IOut<object>>").WithArguments("t", "void C.F<IOut<object>>(IOut<object> t)", "D<IOut<object?>>").WithLocation(17, 30));
67544
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "F<object?>").WithArguments("t", "void C.F<object?>(out object? t)", "D<object>").WithLocation(10, 23),
67547
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "F<I<object?>>").WithArguments("t", "void C.F<I<object?>>(out I<object?> t)", "D<I<object>>").WithLocation(12, 26),
67550
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "F<I<object>>").WithArguments("t", "void C.F<I<object>>(out I<object> t)", "D<I<object?>>").WithLocation(13, 27),
67553
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "F<IIn<object>>").WithArguments("t", "void C.F<IIn<object>>(out IIn<object> t)", "D<IIn<object?>>").WithLocation(15, 29),
67556
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "F<IOut<object?>>").WithArguments("t", "void C.F<IOut<object?>>(out IOut<object?> t)", "D<IOut<object>>").WithLocation(16, 29)
67588
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "F<object>").WithArguments("t", "void C.F<object>(in object t)", "D<object?>").WithLocation(11, 24),
67591
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "F<I<object?>>").WithArguments("t", "void C.F<I<object?>>(in I<object?> t)", "D<I<object>>").WithLocation(12, 26),
67594
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "F<I<object>>").WithArguments("t", "void C.F<I<object>>(in I<object> t)", "D<I<object?>>").WithLocation(13, 27),
67597
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "F<IIn<object?>>").WithArguments("t", "void C.F<IIn<object?>>(in IIn<object?> t)", "D<IIn<object>>").WithLocation(14, 28),
67600
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "F<IOut<object>>").WithArguments("t", "void C.F<IOut<object>>(in IOut<object> t)", "D<IOut<object?>>").WithLocation(17, 30)
67631
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "F<object?>").WithArguments("t", "void C.F<object?>(ref object? t)", "D<object>").WithLocation(10, 23),
67634
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "F<object>").WithArguments("t", "void C.F<object>(ref object t)", "D<object?>").WithLocation(11, 24),
67637
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "F<I<object?>>").WithArguments("t", "void C.F<I<object?>>(ref I<object?> t)", "D<I<object>>").WithLocation(12, 26),
67640
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "F<I<object>>").WithArguments("t", "void C.F<I<object>>(ref I<object> t)", "D<I<object?>>").WithLocation(13, 27),
67643
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "F<IIn<object?>>").WithArguments("t", "void C.F<IIn<object?>>(ref IIn<object?> t)", "D<IIn<object>>").WithLocation(14, 28),
67646
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "F<IIn<object>>").WithArguments("t", "void C.F<IIn<object>>(ref IIn<object> t)", "D<IIn<object?>>").WithLocation(15, 29),
67649
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "F<IOut<object?>>").WithArguments("t", "void C.F<IOut<object?>>(ref IOut<object?> t)", "D<IOut<object>>").WithLocation(16, 29),
67652
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "F<IOut<object>>").WithArguments("t", "void C.F<IOut<object>>(ref IOut<object> t)", "D<IOut<object?>>").WithLocation(17, 30));
69522
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "M1<string>").WithArguments("x", "void C.M1<string>(string x)", "System.Action<string?>").WithLocation(12, 37),
69525
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "M1<CL0<string>>").WithArguments("x", "void C.M1<CL0<string>>(CL0<string> x)", "System.Action<CL0<string?>>").WithLocation(22, 42),
69528
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "M1<CL0<string?>>").WithArguments("x", "void C.M1<CL0<string?>>(CL0<string?> x)", "System.Action<CL0<string>>").WithLocation(27, 41)
69557
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "(System.Action<string?>)M1<string>").WithArguments("x", "void C.M1<string>(string x)", "System.Action<string?>").WithLocation(8, 37),
69560
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "(System.Action<CL0<string?>>)M1<CL0<string>>").WithArguments("x", "void C.M1<CL0<string>>(CL0<string> x)", "System.Action<CL0<string?>>").WithLocation(10, 42),
69563
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "(System.Action<CL0<string>>)M1<CL0<string?>>").WithArguments("x", "void C.M1<CL0<string?>>(CL0<string?> x)", "System.Action<CL0<string>>").WithLocation(11, 41)
69694
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "Create(x).F").WithArguments("t", "void B<A>.F(A t)", "D<A?>").WithLocation(21, 14),
72216
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "F1").WithArguments("a", "void B.F1(A<object> a)", "System.Action<A<object?>>").WithLocation(10, 17),
72219
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "F2").WithArguments("a", "void B.F2(A<object>? a)", "System.Action<A<object?>>").WithLocation(11, 17),
72222
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "(A<object> a) =>").WithArguments("a", "lambda expression", "System.Action<A<object?>>").WithLocation(26, 17),
72225
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "(A<object>? a) =>").WithArguments("a", "lambda expression", "System.Action<A<object?>>").WithLocation(27, 17),
72228
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "(A<object?>? a) =>").WithArguments("a", "lambda expression", "System.Action<A<object?>>").WithLocation(29, 17));
74438
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "F1").WithArguments("s", "void C.F1(string s)", "D<string?>").WithLocation(15, 20),
74441
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "F3").WithArguments("o", "void C.F3(object o)", "D<string?>").WithLocation(17, 20));
78656
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "([AllowNull] string s = null) =>").WithArguments("s", "lambda expression", "<anonymous delegate>").WithLocation(10, 20),
78659
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "([DisallowNull] string? s = null) =>").WithArguments("s", "lambda expression", "<anonymous delegate>").WithLocation(11, 20),
78665
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, @"([DisallowNull] string? s = ""a"") =>").WithArguments("s", "lambda expression", "<anonymous delegate>").WithLocation(12, 20));
116697
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "(C<T> a, C<T> b) =>").WithArguments("a", "lambda expression", "System.Action<C<T?>, C<T>>").WithLocation(11, 13));
136364
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "E.F<string>").WithArguments("t", "void E.F<string>(string t)", "D1<string?>").WithLocation(24, 13));
136403
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "E.F<string>").WithArguments("t", "void E.F<string>(string t)", "D1<string?>").WithLocation(21, 29));
136728
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "Create(x).F").WithArguments("t", "void C<object>.F(object t)", "D<object?>").WithLocation(15, 14),
136731
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "Create(x).F").WithArguments("t", "void C<object>.F(object t)", "D<object?>").WithLocation(19, 28));
154603
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "objectQuestion =>").WithArguments("objectQuestion", "lambda expression", "Del<object?>").WithLocation(15, 11)
154638
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "(object? o) =>").WithArguments("o", "lambda expression", "System.Action<object>").WithLocation(11, 14),
154641
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "(IEnumerable<object?> e) =>").WithArguments("e", "lambda expression", "System.Action<System.Collections.Generic.IEnumerable<object>>").WithLocation(15, 14)
154660
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "([DisallowNull] string? x) =>").WithArguments("x", "lambda expression", "System.Func<string?, string>").WithLocation(5, 27)
156109
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "M2").WithArguments("x", "CL0<string> C.M2(CL0<string> x)", "C.D1").WithLocation(15, 24),
156115
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
, "M4").WithArguments("x", "CL0<string?> C.M4(CL0<string?> x)", "C.D2").WithLocation(25, 24)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Diagnostics\DiagnosticTest.cs (1)
345
case ErrorCode.
WRN_NullabilityMismatchInParameterTypeOfTargetDelegate
: