607 references to WRN_NullabilityMismatchInAssignment
Microsoft.CodeAnalysis.CSharp (6)
Errors\ErrorFacts.cs (3)
33
nullableWarnings.Add(GetId(ErrorCode.
WRN_NullabilityMismatchInAssignment
));
438
case ErrorCode.
WRN_NullabilityMismatchInAssignment
:
1905
case ErrorCode.
WRN_NullabilityMismatchInAssignment
:
FlowAnalysis\NullableWalker.cs (2)
2440
ReportDiagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, syntaxNode, sourceType, destinationType);
2445
ReportDiagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, location, sourceType, destinationType);
Generated\ErrorFacts.Generated.cs (1)
212
case ErrorCode.
WRN_NullabilityMismatchInAssignment
:
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (5)
CodeGen\CodeGenFunctionPointersTests.cs (5)
7110
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "ptr1").WithArguments("delegate*<string, string?, string?>", "delegate*<string?, string?, string?>").WithLocation(9, 53),
7113
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "ptr1").WithArguments("delegate*<string, string?, string?>", "delegate*<string, string?, string>").WithLocation(10, 51),
7119
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "ptr1(ref str2)").WithArguments("string", "string?").WithLocation(18, 32),
7122
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "ptr1").WithArguments("delegate*<ref string, ref string>", "delegate*<ref string?, ref string>").WithLocation(19, 51),
7125
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "ptr1").WithArguments("delegate*<ref string, ref string>", "delegate*<ref string, ref string?>").WithLocation(20, 51)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (591)
Semantics\FunctionPointerTests.cs (4)
2557
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "ptr4").WithArguments("delegate*<ref string?>", "delegate*<ref string>").WithLocation(14, 24),
2566
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "ptr8").WithArguments("delegate*<ref string?>", "delegate*<ref string>").WithLocation(23, 24)
2630
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "ptr4").WithArguments("delegate*<ref string?, void>", "delegate*<ref string, void>").WithLocation(14, 24),
2639
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "ptr8").WithArguments("delegate*<ref string?, void>", "delegate*<ref string, void>").WithLocation(23, 24)
Semantics\LambdaTests.cs (2)
5176
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "default(S<object>)").WithArguments("S<object>", "S<object?>").WithLocation(11, 40),
5179
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "default(S<object?>)").WithArguments("S<object?>", "S<object>").WithLocation(12, 39));
Semantics\NullableReferenceTypesTests.cs (579)
1238
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "r").WithArguments("R<string>", "R<string?>").WithLocation(13, 24),
1283
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x").WithArguments("System.Span<string?>", "System.Span<string>").WithLocation(17, 24)
1310
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "NullableRef()").WithArguments("string?", "string").WithLocation(6, 28),
2692
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "&x").WithArguments("C<string>*", "C<string?>*").WithLocation(6, 26),
2701
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "&x!").WithArguments("C<string>*", "C<string?>*").WithLocation(7, 26),
2890
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x").WithArguments("S<string>", "S<string?>").WithLocation(6, 20),
2893
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x").WithArguments("C<string>", "C<string>?").WithLocation(17, 20),
2896
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x").WithArguments("C<string>?", "C<string>").WithLocation(21, 20)
2938
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "y").WithArguments("object", "object?").WithLocation(12, 47),
2941
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "y").WithArguments("object", "object?").WithLocation(14, 33),
2944
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x").WithArguments("I<object?>", "I<object>").WithLocation(17, 33),
2947
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x").WithArguments("I<object?>", "I<object>").WithLocation(19, 47),
2950
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "y").WithArguments("IOut<object>", "IOut<object?>").WithLocation(22, 47),
2953
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "y").WithArguments("IOut<object>", "IOut<object?>").WithLocation(24, 33),
2956
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x").WithArguments("IIn<object?>", "IIn<object>").WithLocation(27, 33),
2959
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x").WithArguments("IIn<object?>", "IIn<object>").WithLocation(29, 47)
2991
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "w").WithArguments("C?", "C").WithLocation(6, 20),
2994
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "w").WithArguments("C", "C?").WithLocation(10, 20)
3033
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x").WithArguments("C?", "C").WithLocation(6, 23),
3039
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x").WithArguments("C", "C?").WithLocation(11, 24),
3042
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x").WithArguments("C?", "C").WithLocation(17, 23),
3051
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x").WithArguments("C", "C?").WithLocation(24, 24),
3115
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "y").WithArguments("S<string?>", "S<string>").WithLocation(7, 32),
3118
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "y").WithArguments("S<string?>", "S<string>").WithLocation(8, 18)
3128
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "ref string?").WithArguments("string", "string?").WithLocation(6, 18));
3133
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "ref string").WithArguments("string?", "string").WithLocation(6, 18),
3147
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "ref C<string?>").WithArguments("C<string>", "C<string?>").WithLocation(6, 18));
3152
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "ref C<string>").WithArguments("C<string?>", "C<string>").WithLocation(6, 18));
3157
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "ref C<object?>").WithArguments("C<dynamic>?", "C<object?>").WithLocation(6, 18),
4735
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x").WithArguments("C<string>", "C<string?>").WithLocation(12, 25),
4741
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x").WithArguments("C<string>", "C<string?>").WithLocation(15, 28),
5010
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x").WithArguments("C<string>", "C<string?>").WithLocation(15, 27),
5016
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x").WithArguments("C<string>", "C<string?>").WithLocation(24, 20),
5097
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "y").WithArguments("C<object?>", "C<object>").WithLocation(10, 20),
5103
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "y").WithArguments("C<object?>", "C<object>").WithLocation(18, 27),
7145
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "new string?[]{ null }").WithArguments("string?[]", "string[]").WithLocation(12, 30)
7230
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "new string?[]{ null }").WithArguments("string?[]", "string[]").WithLocation(12, 27)
7422
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "new string?[]{ null }").WithArguments("string?[]", "string[]").WithLocation(28, 43),
7428
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "new string?[]{ null }").WithArguments("string?[]", "string[]").WithLocation(30, 44),
7446
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "new string?[]{ null }").WithArguments("string?[]", "string[]").WithLocation(36, 37),
7455
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "new string?[]{ null }").WithArguments("string?[]", "string[]").WithLocation(45, 34)
7898
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x").WithArguments("string?", "string").WithLocation(6, 28),
7901
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x").WithArguments("string?", "string").WithLocation(7, 29),
18878
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "y").WithArguments("I<object?>", "I<object>").WithLocation(19, 25),
20321
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x1").WithArguments("CL1<string>", "CL1<string?>").WithLocation(10, 16),
20324
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x2").WithArguments("CL1<string?>", "CL1<string>").WithLocation(15, 16)
20368
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x").WithArguments("I<object>", "I<object?>").WithLocation(6, 41),
20371
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x").WithArguments("IIn<object>", "IIn<object?>").WithLocation(7, 45),
20374
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x").WithArguments("I<object?>", "I<object>").WithLocation(9, 41),
20377
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x").WithArguments("IOut<object?>", "IOut<object>").WithLocation(11, 47));
20402
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x").WithArguments("I<object>", "I<object?>").WithLocation(8, 53),
20405
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x").WithArguments("IIn<object>", "IIn<object?>").WithLocation(9, 57),
20408
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x").WithArguments("I<object?>", "I<object>").WithLocation(11, 53),
20411
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x").WithArguments("IOut<object?>", "IOut<object>").WithLocation(13, 59));
52502
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "z").WithArguments("B1", "A<object>").WithLocation(10, 22),
52505
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "z").WithArguments("B1", "A<object>").WithLocation(12, 18),
52508
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "w").WithArguments("B2", "A<object?>").WithLocation(15, 22),
52511
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "w").WithArguments("B2", "A<object?>").WithLocation(17, 18));
52925
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "b ? ref x1 : ref y1").WithArguments("string?", "string").WithLocation(9, 10),
52931
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "b ? ref y1 : ref x1").WithArguments("string", "string?").WithLocation(10, 10),
52940
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "b ? ref y2 : ref x2").WithArguments("I<string>", "I<string?>").WithLocation(16, 10),
52943
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "b ? ref x2 : ref y2").WithArguments("I<string?>", "I<string>").WithLocation(17, 10),
52946
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "b ? ref y3 : ref x3").WithArguments("IIn<string>", "IIn<string?>").WithLocation(23, 10),
52949
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "b ? ref x3 : ref y3").WithArguments("IIn<string?>", "IIn<string>").WithLocation(24, 10),
52955
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "b ? ref y4 : ref x4").WithArguments("IOut<string>", "IOut<string?>").WithLocation(30, 10),
52958
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "b ? ref x4 : ref y4").WithArguments("IOut<string?>", "IOut<string>").WithLocation(31, 10));
53018
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "b ? ref D2(s) : ref D2(s!)").WithArguments("C.MyDelegate<string?>", "C.MyDelegate<string>").WithLocation(36, 14),
53021
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "b ? ref D2(s!) : ref D2(s)").WithArguments("C.MyDelegate<string>", "C.MyDelegate<string?>").WithLocation(37, 14),
53024
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "true ? ref D2(s) : ref D2(s!)").WithArguments("C.MyDelegate<string?>", "C.MyDelegate<string>").WithLocation(38, 14),
53027
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "false ? ref D2(s!) : ref D2(s)").WithArguments("C.MyDelegate<string>", "C.MyDelegate<string?>").WithLocation(41, 14)
53097
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "b ? ref Create(s, s2) : ref Create(s2, s)").WithArguments("C<string, string?>", "C<string?, string>").WithLocation(6, 10),
53103
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "b ? ref Create(s2, s) : ref Create(s, s2)").WithArguments("C<string?, string>", "C<string, string?>").WithLocation(7, 10),
53144
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "b ? ref x1 : ref y1").WithArguments("string?", "string").WithLocation(8, 10),
53150
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "b ? ref y1 : ref x1").WithArguments("string", "string?").WithLocation(9, 10),
53159
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "b ? ref x1 : ref y1").WithArguments("string?", "string").WithLocation(15, 10),
53162
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "b ? ref y1 : ref x1").WithArguments("string", "string?").WithLocation(16, 10)
53304
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "b ? ref M1(false ? 1 : throw new System.Exception()) : ref M2(2)").WithArguments("string?", "string").WithLocation(6, 10),
53310
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "b ? ref M1(1) : ref M2(false ? 2 : throw new System.Exception())").WithArguments("string?", "string").WithLocation(7, 10),
53362
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(b && false) ? ref x1 : ref y1").WithArguments("string?", "string").WithLocation(7, 10),
53368
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(b && false) ? ref y1 : ref x1").WithArguments("string", "string?").WithLocation(8, 10),
53377
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(b || true) ? ref x1 : ref y1").WithArguments("string?", "string").WithLocation(12, 10),
53383
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(b || true) ? ref y1 : ref x1").WithArguments("string", "string?").WithLocation(13, 10),
53862
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "new C1()").WithArguments("C1", "C<string?>").WithLocation(7, 35),
53865
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "new C2()").WithArguments("C2", "C<string?>").WithLocation(7, 46),
53868
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "new C3()").WithArguments("C3", "C<string?>").WithLocation(8, 22),
53871
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "new C4()").WithArguments("C4", "C<string?>").WithLocation(8, 33)
54508
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x").WithArguments("B<object?>", "B<object>").WithLocation(8, 18),
54511
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x").WithArguments("B<object?>", "B<object>").WithLocation(10, 22)
54585
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "y").WithArguments("I<object?>", "I<object>").WithLocation(8, 22),
54588
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "y").WithArguments("I<object?>", "I<object>").WithLocation(10, 18)
54646
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "y1").WithArguments("IIn<object?, string?>", "IIn<object, string>").WithLocation(8, 23),
54649
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "y1").WithArguments("IIn<object?, string?>", "IIn<object, string>").WithLocation(10, 18),
54652
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "y2").WithArguments("IOut<object?, string?>", "IOut<object, string?>").WithLocation(22, 23),
54655
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "y2").WithArguments("IOut<object?, string?>", "IOut<object, string?>").WithLocation(24, 18)
54700
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(x2, y2)").WithArguments("(I<object> x2, I<object?> y2)", "(I<object>, I<object>)").WithLocation(14, 29),
54703
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(y2, y2)").WithArguments("(I<object?>, I<object?>)", "(I<object>, I<object?>)").WithLocation(17, 29)
54741
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "b ? ref x : ref y").WithArguments("object?", "object").WithLocation(6, 26),
54744
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "b ? ref y : ref x").WithArguments("object", "object?").WithLocation(8, 26)
54814
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "b ? ref x1 : ref y1").WithArguments("I<object>", "I<object?>").WithLocation(7, 26),
54817
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "b ? ref x1 : ref z1").WithArguments("I<object>", "I<object>?").WithLocation(8, 26),
54820
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "b ? ref y1 : ref x1").WithArguments("I<object?>", "I<object>").WithLocation(9, 26),
54823
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "b ? ref y1 : ref z1").WithArguments("I<object?>", "I<object>?").WithLocation(11, 26),
54826
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "b ? ref z1 : ref x1").WithArguments("I<object>?", "I<object>").WithLocation(12, 26),
54829
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "b ? ref z1 : ref y1").WithArguments("I<object>?", "I<object?>").WithLocation(13, 26),
54832
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "b ? ref x2 : ref y2").WithArguments("IIn<object>", "IIn<object?>").WithLocation(20, 26),
54835
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "b ? ref x2 : ref z2").WithArguments("IIn<object>", "IIn<object>?").WithLocation(21, 26),
54838
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "b ? ref y2 : ref x2").WithArguments("IIn<object?>", "IIn<object>").WithLocation(22, 26),
54841
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "b ? ref y2 : ref z2").WithArguments("IIn<object?>", "IIn<object>?").WithLocation(24, 26),
54844
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "b ? ref z2 : ref x2").WithArguments("IIn<object>?", "IIn<object>").WithLocation(25, 26),
54847
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "b ? ref z2 : ref y2").WithArguments("IIn<object>?", "IIn<object?>").WithLocation(26, 26),
54850
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "b ? ref x3 : ref y3").WithArguments("IOut<object>", "IOut<object?>").WithLocation(33, 26),
54853
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "b ? ref x3 : ref z3").WithArguments("IOut<object>", "IOut<object>?").WithLocation(34, 26),
54856
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "b ? ref y3 : ref x3").WithArguments("IOut<object?>", "IOut<object>").WithLocation(35, 26),
54859
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "b ? ref y3 : ref z3").WithArguments("IOut<object?>", "IOut<object>?").WithLocation(37, 26),
54862
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "b ? ref z3 : ref x3").WithArguments("IOut<object>?", "IOut<object>").WithLocation(38, 26),
54865
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "b ? ref z3 : ref y3").WithArguments("IOut<object>?", "IOut<object?>").WithLocation(39, 26)
54908
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "c ? ref x : ref y").WithArguments("string", "string?").WithLocation(6, 10),
54914
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "c ? ref y : ref x").WithArguments("string?", "string").WithLocation(10, 10),
54974
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "y").WithArguments("I<object?>", "I<object>").WithLocation(9, 21),
54977
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "y").WithArguments("I<object?>", "I<object>").WithLocation(10, 25),
54980
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "c ? x : y").WithArguments("I<object>", "I<object?>").WithLocation(13, 13),
54983
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "y").WithArguments("I<object?>", "I<object>").WithLocation(13, 21),
54986
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "false ? x : y").WithArguments("I<object>", "I<object?>").WithLocation(14, 13),
54989
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "y").WithArguments("I<object?>", "I<object>").WithLocation(14, 25),
54992
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "true ? x : y").WithArguments("I<object>", "I<object?>").WithLocation(15, 13),
54995
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "c ? x : y").WithArguments("IIn<object>", "IIn<object?>").WithLocation(24, 13),
54998
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "false ? x : y").WithArguments("IIn<object>", "IIn<object?>").WithLocation(25, 13),
55001
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "true ? x : y").WithArguments("IIn<object>", "IIn<object?>").WithLocation(26, 13),
55004
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "c ? x : y").WithArguments("IOut<object?>", "IOut<object>").WithLocation(31, 13),
55007
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "false ? x : y").WithArguments("IOut<object?>", "IOut<object>").WithLocation(32, 13),
55010
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "true ? x : y").WithArguments("IOut<object?>", "IOut<object>").WithLocation(33, 13));
55332
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "y").WithArguments("(I<object?>, I<object>)?", "(I<object>, I<object?>)?").WithLocation(6, 21),
55335
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "y").WithArguments("(I<object?>, I<object>)", "(I<object>, I<object?>)").WithLocation(10, 21));
55471
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "new D<string>()").WithArguments("D<string>", "D<string?>").WithLocation(2, 22)
55505
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "a1 ?? (Action<string>)((string s) => {})").WithArguments("System.Action<string>", "System.Action<string?>").WithLocation(3, 22)
55539
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "a1 ?? (Func<string?>)(() => null)").WithArguments("System.Func<string?>", "System.Func<string>").WithLocation(3, 19)
55625
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "y1").WithArguments("I<object?>", "I<object>").WithLocation(8, 30),
55631
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x1").WithArguments("I<object>", "I<object?>").WithLocation(9, 31),
55637
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "y2 ?? x2").WithArguments("IIn<object>", "IIn<object?>").WithLocation(14, 27),
55640
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x3 ?? y3").WithArguments("IOut<object?>", "IOut<object>").WithLocation(18, 27),
55818
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x1").WithArguments("A<object>", "B<object?>").WithLocation(14, 10),
55824
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x2").WithArguments("A<object?>", "B<object>").WithLocation(18, 10),
55827
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x3").WithArguments("B<object>", "B<object?>").WithLocation(22, 16),
55833
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x4").WithArguments("B<object?>", "B<object>").WithLocation(26, 16),
55836
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x5").WithArguments("A<object>", "B<object?>?").WithLocation(30, 10),
55845
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x5").WithArguments("B<object>?", "B<object?>?").WithLocation(31, 16),
55854
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x6").WithArguments("A<object?>", "B<object>?").WithLocation(35, 10),
55860
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x6").WithArguments("B<object?>?", "B<object>?").WithLocation(36, 16),
55918
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x1").WithArguments("A<object>", "B<object?>").WithLocation(14, 10),
55924
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x2").WithArguments("A<object?>", "B<object>").WithLocation(18, 10),
55927
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x3").WithArguments("B<object>", "B<object?>").WithLocation(22, 16),
55933
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x4").WithArguments("B<object?>", "B<object>").WithLocation(26, 16),
55936
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x5").WithArguments("A<object>", "B<object?>").WithLocation(30, 10),
55945
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x5").WithArguments("B<object>", "B<object?>").WithLocation(31, 16),
55954
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x6").WithArguments("A<object?>", "B<object>").WithLocation(35, 10),
55960
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x6").WithArguments("B<object?>", "B<object>").WithLocation(36, 16),
56155
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "y").WithArguments("B<object?>", "A<object>").WithLocation(11, 15),
56158
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "y").WithArguments("B<object?>", "A<object>").WithLocation(12, 10),
56164
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "w").WithArguments("B<object>", "A<object?>").WithLocation(16, 15),
56173
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "w").WithArguments("B<object>", "A<object?>").WithLocation(17, 10),
56214
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x").WithArguments("IIn<object>", "IIn<string?>").WithLocation(10, 14),
56220
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x").WithArguments("IIn<object>", "IIn<string?>").WithLocation(12, 19),
56264
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "y").WithArguments("IOut<string?>", "IOut<object>").WithLocation(10, 19),
56267
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "y").WithArguments("IOut<string?>", "IOut<object>").WithLocation(12, 14),
57216
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "new [] { y1, z1 }").WithArguments("CL1?[]", "CL1[]").WithLocation(13, 14),
57219
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "new [,] { {y1}, {z1} }").WithArguments("CL1?[*,*]", "CL1[*,*]").WithLocation(14, 14),
57222
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "a2").WithArguments("CL1?[]", "CL1[]").WithLocation(25, 14),
57225
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "b2").WithArguments("CL1?[*,*]", "CL1[*,*]").WithLocation(26, 14),
57228
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "new [] { y8, z8 }").WithArguments("CL1?[]", "CL1[]").WithLocation(31, 21),
57231
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "new [,] { {y9}, {z9} }").WithArguments("CL1?[*,*]", "CL1[*,*]").WithLocation(36, 22)
57392
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "new [] { null, new object() }").WithArguments("object?[]", "object[]").WithLocation(16, 24),
57588
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x1").WithArguments("CL0<string?>", "CL0<string>").WithLocation(10, 27),
57591
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x1").WithArguments("CL0<string?>", "CL0<string>").WithLocation(11, 31),
57594
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "y1").WithArguments("CL0<string>", "CL0<string?>").WithLocation(12, 43),
57597
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x1").WithArguments("CL0<string?>", "CL0<string>").WithLocation(13, 38)
57916
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "cy").WithArguments("C2", "B<object?>").WithLocation(10, 25),
57919
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "cx").WithArguments("C1", "B<object>").WithLocation(12, 25)
57954
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "b").WithArguments("C<object?>", "C<object>").WithLocation(8, 32),
57960
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "b").WithArguments("C<object?>", "C<object>").WithLocation(10, 29),
57966
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "b").WithArguments("C<object?>", "C<object>").WithLocation(15, 32),
57969
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "b").WithArguments("C<object?>", "C<object>").WithLocation(17, 29)
58105
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x").WithArguments("B<object?>", "B<object>").WithLocation(7, 22),
58108
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x").WithArguments("B<object?>", "B<object>").WithLocation(9, 25),
58111
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x").WithArguments("B<object?>", "B<object>").WithLocation(13, 22),
58114
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x").WithArguments("B<object?>", "B<object>").WithLocation(14, 28)
58189
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "y").WithArguments("I<object?>", "I<object>").WithLocation(8, 25),
58192
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "y").WithArguments("I<object?>", "I<object>").WithLocation(10, 22)
58271
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x1").WithArguments("I<IOut<string?>>", "I<IOut<string>>").WithLocation(10, 23),
58274
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x1").WithArguments("I<IOut<string?>>", "I<IOut<string>>").WithLocation(12, 27)
58371
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "y0").WithArguments("B<object?>.INone", "B<object>.INone").WithLocation(9, 26),
58374
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "y0").WithArguments("B<object?>.INone", "B<object>.INone").WithLocation(11, 22),
58377
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "y1").WithArguments("B<object?>.I<string?>", "B<object>.I<string>").WithLocation(23, 26),
58380
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "y1").WithArguments("B<object?>.I<string?>", "B<object>.I<string>").WithLocation(25, 22),
58383
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "y2").WithArguments("B<object?>.IIn<string?>", "B<object>.IIn<string>").WithLocation(37, 26),
58386
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "y2").WithArguments("B<object?>.IIn<string?>", "B<object>.IIn<string>").WithLocation(39, 22),
58389
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "y3").WithArguments("B<object?>.IOut<string?>", "B<object>.IOut<string?>").WithLocation(51, 26),
58392
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "y3").WithArguments("B<object?>.IOut<string?>", "B<object>.IOut<string?>").WithLocation(53, 22));
58444
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(x2, y2)").WithArguments("(I<object> x2, I<object?> y2)", "(I<object>, I<object>)").WithLocation(18, 32),
58447
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(y2, y2)").WithArguments("(I<object?>, I<object?>)", "(I<object>, I<object?>)").WithLocation(21, 32),
58450
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(x2, y2)").WithArguments("(I<object> x2, I<object?> y2)", "(I<object>, I<object>)").WithLocation(25, 33));
58624
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "y").WithArguments("I<object?>", "I<object>").WithLocation(8, 21),
58633
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "w").WithArguments("I<object?>", "I<object>").WithLocation(10, 21),
58639
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "y").WithArguments("I<object?>", "I<object>").WithLocation(11, 18),
58648
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "w").WithArguments("I<object?>", "I<object>").WithLocation(13, 18),
58801
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "new[] { x }").WithArguments("I<object>?[]", "I<object?>?[]").WithLocation(8, 27),
58804
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "new[] { y }").WithArguments("I<object?>?[]", "I<object?>[]").WithLocation(9, 26),
58807
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "new[] { y }").WithArguments("I<object?>?[]", "I<object>?[]").WithLocation(10, 26),
58810
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "new[] { x }").WithArguments("I<object>?[]", "I<object>[]").WithLocation(11, 25),
58813
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "new[] { x }").WithArguments("IIn<object>?[]", "IIn<object?>?[]").WithLocation(15, 29),
58816
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "new[] { y }").WithArguments("IIn<object?>?[]", "IIn<object?>[]").WithLocation(16, 28),
58819
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "new[] { x }").WithArguments("IIn<object>?[]", "IIn<object>[]").WithLocation(18, 27),
58822
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "new[] { y }").WithArguments("IOut<object?>?[]", "IOut<object?>[]").WithLocation(23, 29),
58825
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "new[] { y }").WithArguments("IOut<object?>?[]", "IOut<object>?[]").WithLocation(24, 29),
58828
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "new[] { x }").WithArguments("IOut<object>?[]", "IOut<object>[]").WithLocation(25, 28));
58849
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "y").WithArguments("B<object?>", "A<object>").WithLocation(7, 38),
58852
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x").WithArguments("A<object>", "A<object?>").WithLocation(8, 36));
58878
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x").WithArguments("IIn<object>", "IIn<string?>").WithLocation(7, 38),
58881
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "y").WithArguments("IOut<string?>", "IOut<object>").WithLocation(13, 38));
59754
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "v2").WithArguments("<anonymous type: CL1? p1, CL1 p2>", "<anonymous type: CL1 p1, CL1? p2>").WithLocation(18, 14),
59769
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "v4").WithArguments("<anonymous type: <anonymous type: CL1? p1, CL1 p2> p0>", "<anonymous type: <anonymous type: CL1 p1, CL1? p2> p0>").WithLocation(37, 14),
59910
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "v1").WithArguments("<anonymous type: CL1<string?> F1>", "<anonymous type: CL1<string> F1>").WithLocation(12, 14),
59913
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "u1").WithArguments("<anonymous type: CL1<string> F1>", "<anonymous type: CL1<string?> F1>").WithLocation(13, 14)
59962
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "b0").WithArguments("<anonymous type: string? F>", "<anonymous type: string F>").WithLocation(10, 14),
59965
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "a0").WithArguments("<anonymous type: string F>", "<anonymous type: string? F>").WithLocation(11, 14),
59968
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "b1").WithArguments("<anonymous type: I<string?> F>", "<anonymous type: I<string> F>").WithLocation(17, 14),
59971
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "a1").WithArguments("<anonymous type: I<string> F>", "<anonymous type: I<string?> F>").WithLocation(18, 14),
59974
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "b2").WithArguments("<anonymous type: IIn<string?> F>", "<anonymous type: IIn<string> F>").WithLocation(24, 14),
59977
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "a2").WithArguments("<anonymous type: IIn<string> F>", "<anonymous type: IIn<string?> F>").WithLocation(25, 14),
59980
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "b3").WithArguments("<anonymous type: IOut<string?> F>", "<anonymous type: IOut<string> F>").WithLocation(31, 14),
59983
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "a3").WithArguments("<anonymous type: IOut<string> F>", "<anonymous type: IOut<string?> F>").WithLocation(32, 14));
60117
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "new { x = y, y = x }").WithArguments("<anonymous type: T? x, T y>", "<anonymous type: T x, T? y>").WithLocation(8, 13),
60187
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "new { x, y }").WithArguments("<anonymous type: T x, T? y>", "<anonymous type: T? x, T y>").WithLocation(12, 13),
62156
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x").WithArguments("B<object?>", "B<object>").WithLocation(9, 46),
62159
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x").WithArguments("B<object?>", "B<object>").WithLocation(11, 65),
62162
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x").WithArguments("B<object?>", "B<object>").WithLocation(17, 46),
62165
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x").WithArguments("B<object?>", "B<object>").WithLocation(18, 83)
62238
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "y").WithArguments("I<object?>", "I<object>").WithLocation(9, 47),
62241
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "y").WithArguments("I<object?>", "I<object>").WithLocation(11, 32)
62299
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x").WithArguments("B<object?>", "B<object>").WithLocation(9, 48),
62302
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x").WithArguments("B<object?>", "B<object>").WithLocation(9, 67),
62305
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x").WithArguments("B<object?>", "B<object>").WithLocation(10, 48),
62308
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x").WithArguments("B<object?>", "B<object>").WithLocation(11, 48),
62311
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x").WithArguments("B<object?>", "B<object>").WithLocation(12, 67),
62314
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x").WithArguments("B<object?>", "B<object>").WithLocation(15, 67),
62317
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x").WithArguments("B<object?>", "B<object>").WithLocation(18, 48),
62320
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x").WithArguments("B<object?>", "B<object>").WithLocation(19, 85)
62346
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "y2").WithArguments("object", "object?").WithLocation(8, 81),
62349
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x3").WithArguments("object", "object?").WithLocation(9, 66)
62389
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "a2").WithArguments("I<object?>", "I<object>").WithLocation(12, 72),
62392
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "b3").WithArguments("I<object?>", "I<object>").WithLocation(13, 87),
62395
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "c2").WithArguments("IIn<object?>", "IIn<object>").WithLocation(17, 76),
62398
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "d3").WithArguments("IIn<object?>", "IIn<object>").WithLocation(18, 91),
62401
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "f2").WithArguments("IOut<object>", "IOut<object?>").WithLocation(22, 93),
62404
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "e3").WithArguments("IOut<object>", "IOut<object?>").WithLocation(23, 78)
62858
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x").WithArguments("I<object>", "I<object?>").WithLocation(17, 33),
62861
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "y").WithArguments("I<object?>", "I<object>").WithLocation(18, 32));
65962
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "F<I<object?>>()").WithArguments("I<object?>", "I<object>").WithLocation(12, 36),
65965
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "F<I<object>>()").WithArguments("I<object>", "I<object?>").WithLocation(13, 37),
65968
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "F<IIn<object>>()").WithArguments("IIn<object>", "IIn<object?>").WithLocation(15, 39),
65971
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "F<IOut<object?>>()").WithArguments("IOut<object?>", "IOut<object>").WithLocation(16, 39));
66888
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "d1").WithArguments("D<string>", "D<string?>").WithLocation(19, 25),
66891
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "d2").WithArguments("D<string?>", "D<string>").WithLocation(20, 24)
68586
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "o4").WithArguments("C<object?>", "C<object>").WithLocation(8, 41),
68589
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "o4").WithArguments("C<object?>", "C<object>").WithLocation(9, 27),
68592
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "o4").WithArguments("C<object?>", "C<object>").WithLocation(11, 36),
68595
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "o4").WithArguments("C<object?>", "C<object>").WithLocation(12, 22)
69967
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x1").WithArguments("CL0<string?>", "CL0<string>").WithLocation(10, 26),
69970
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(CL0<string>)x1").WithArguments("CL0<string?>", "CL0<string>").WithLocation(11, 26)
70005
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x1").WithArguments("B<object>", "A<object?>").WithLocation(7, 25),
70008
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x1").WithArguments("B<object>", "A<object?>").WithLocation(8, 14),
70011
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x2").WithArguments("B<object?>", "A<object>").WithLocation(13, 24),
70014
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x2").WithArguments("B<object?>", "A<object>").WithLocation(14, 14),
70020
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x3").WithArguments("B<object>", "A<object?>").WithLocation(19, 25),
70026
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x3").WithArguments("B<object>", "A<object?>").WithLocation(20, 14)
70061
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x1").WithArguments("IB<object>", "IA<object?>").WithLocation(7, 26),
70064
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x1").WithArguments("IB<object>", "IA<object?>").WithLocation(8, 14),
70067
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x2").WithArguments("IB<object?>", "IA<object>").WithLocation(13, 25),
70070
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x2").WithArguments("IB<object?>", "IA<object>").WithLocation(14, 14),
70076
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x3").WithArguments("IB<object>", "IA<object?>").WithLocation(19, 26),
70082
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x3").WithArguments("IB<object>", "IA<object?>").WithLocation(20, 14));
70105
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x").WithArguments("IOut<object?>", "IOut<object>").WithLocation(10, 26));
70128
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x").WithArguments("IIn<object>", "IIn<object?>").WithLocation(6, 26));
70152
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x").WithArguments("A<string?>", "IOut<object>").WithLocation(11, 26));
70187
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "a1").WithArguments("A<string>", "IIn<object?>").WithLocation(9, 26),
70190
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "b1").WithArguments("B", "IIn<object?>").WithLocation(10, 13),
70193
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "a2").WithArguments("A<string>", "IOut<object>").WithLocation(18, 26),
70196
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "b2").WithArguments("B", "IOut<object>").WithLocation(19, 13));
70369
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x1").WithArguments("I<object>", "I<object?>").WithLocation(9, 25),
70372
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "y1").WithArguments("IIn<object>", "IIn<object?>").WithLocation(10, 27),
70375
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "w1").WithArguments("IBoth<object, object>", "IBoth<object?, object?>").WithLocation(12, 38),
70378
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x2").WithArguments("I<object?>", "I<object>").WithLocation(16, 24),
70381
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "z2").WithArguments("IOut<object?>", "IOut<object>").WithLocation(18, 27),
70384
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "w2").WithArguments("IBoth<object?, object?>", "IBoth<object, object>").WithLocation(19, 36));
70424
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x1").WithArguments("I<object>", "I<object?>").WithLocation(10, 14),
70427
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "y1").WithArguments("IIn<object>", "IIn<object?>").WithLocation(12, 14),
70430
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "w1").WithArguments("IBoth<object, object>", "IBoth<object?, object?>").WithLocation(16, 14),
70433
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x2").WithArguments("I<object?>", "I<object>").WithLocation(21, 14),
70436
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "z2").WithArguments("IOut<object?>", "IOut<object>").WithLocation(25, 14),
70439
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "w2").WithArguments("IBoth<object?, object?>", "IBoth<object, object>").WithLocation(27, 14));
71680
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "y").WithArguments("I<object?>", "I<object>").WithLocation(12, 9),
71686
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "y += c").WithArguments("I<object>", "I<object?>").WithLocation(12, 9),
71689
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "y += c").WithArguments("IIn<object>", "IIn<object?>").WithLocation(17, 9),
71692
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "y").WithArguments("IOut<object?>", "IOut<object>").WithLocation(22, 9),
74378
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "i").WithArguments("I<string?>", "I<string>").WithLocation(6, 42),
74381
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "i").WithArguments("I<string?>", "I<object>").WithLocation(7, 42));
74402
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "i").WithArguments("I<string>", "I<string?>").WithLocation(4, 42),
74405
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "i").WithArguments("I<object>", "I<string?>").WithLocation(5, 42));
74678
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "null").WithArguments("<null>", "int").WithLocation(5, 39),
75921
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "y").WithArguments("C<object?>", "C<object>").WithLocation(7, 21),
75927
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "y").WithArguments("C<object?>", "C<object>").WithLocation(8, 17),
75933
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "y").WithArguments("C<object?>", "C<object>").WithLocation(10, 22),
75939
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "c ? x : y").WithArguments("C<object>", "C<object?>").WithLocation(13, 13),
75942
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "y").WithArguments("C<object?>", "C<object>").WithLocation(13, 21),
75948
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "c ? x : y!").WithArguments("C<object>", "C<object?>").WithLocation(14, 13),
75951
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "c ? x! : y").WithArguments("C<object>", "C<object?>").WithLocation(15, 13),
75954
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "y").WithArguments("C<object?>", "C<object>").WithLocation(15, 22),
75957
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "c ? x! : y!").WithArguments("C<object>", "C<object?>").WithLocation(16, 13)
75984
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "y").WithArguments("C<object?>", "C<object>").WithLocation(6, 23),
75987
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x").WithArguments("C<object>", "C<object?>").WithLocation(7, 23),
75990
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "y").WithArguments("C<object?>", "C<object>").WithLocation(8, 24),
75993
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x").WithArguments("C<object>", "C<object?>").WithLocation(9, 24));
76022
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "y").WithArguments("C<object?>", "C<object>").WithLocation(6, 29),
76025
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "y").WithArguments("C<object?>", "C<object>").WithLocation(8, 30));
76047
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "y").WithArguments("C<object?>", "C<object>").WithLocation(6, 25),
76053
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x").WithArguments("C<object>", "C<object?>").WithLocation(7, 25)
76076
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(C<object>?)y").WithArguments("C<object?>", "C<object>").WithLocation(6, 18),
76082
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(C<object?>)x").WithArguments("C<object>", "C<object?>").WithLocation(7, 18)
76105
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "y").WithArguments("C<object?>", "C<object>").WithLocation(8, 32),
76111
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x").WithArguments("C<object>", "C<object?>").WithLocation(8, 39)
76184
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x").WithArguments("C<object?>", "C<object>").WithLocation(7, 13),
76187
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "y").WithArguments("C<object>", "C<object?>").WithLocation(10, 13)
76215
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x").WithArguments("C<object?>", "I<object>").WithLocation(8, 13),
76218
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "y").WithArguments("C<object>", "I<object?>").WithLocation(11, 13)
76283
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "b1").WithArguments("A<object?>", "A<object>").WithLocation(11, 14),
76286
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "b2").WithArguments("A<object>", "A<object?>").WithLocation(14, 14)
76314
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(I<object?>)x").WithArguments("I<object?>", "I<object>").WithLocation(8, 13),
76317
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(I<object>)y").WithArguments("I<object>", "I<object?>").WithLocation(11, 13)
76746
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "c").WithArguments("C<string?>", "C<string>").WithLocation(10, 58),
76757
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "c").WithArguments("C<string?>", "C<string>").WithLocation(13, 58),
76768
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "c").WithArguments("C<string?>", "C<string>").WithLocation(16, 58),
76776
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "c").WithArguments("C<string?>", "C<string>").WithLocation(19, 59),
76869
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(c, null)").WithArguments("(C<string?> c, string?)", "(C<string>, string)").WithLocation(9, 51),
76872
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(null, (c, null))").WithArguments("(string?, (C<string>, string))", "(string, (C<string>, string))").WithLocation(9, 44),
76880
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(c, null)").WithArguments("(C<string?> c, string?)", "(C<string>, string)").WithLocation(14, 51),
76888
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(null, (c, null)!)").WithArguments("(string?, (C<string>, string))", "(string, (C<string>, string))").WithLocation(19, 44),
76901
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(c!, null!)").WithArguments("(C<string?>, string)", "(C<string>, string)").WithLocation(34, 52),
76906
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(c, null)").WithArguments("(C<string?> c, string?)", "(C<string>, string)").WithLocation(44, 51),
80052
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x").WithArguments("(B?, B)", "(C, C?)").WithLocation(13, 13),
80164
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(x, y)").WithArguments("(string x, string? y)", "(string, string)").WithLocation(12, 31),
80167
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(x, y)").WithArguments("(object x, object? y)", "(object, object)").WithLocation(14, 31),
80176
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(x, y)").WithArguments("(A<object> x, A<object?> y)", "(A<object>, A<object>)").WithLocation(27, 37),
80179
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(x, y)").WithArguments("(A<object> x, A<object?> y)", "(A<object?>, A<object?>)").WithLocation(28, 39),
80182
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "y").WithArguments("A<object?>", "I<object>").WithLocation(29, 41),
80185
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x").WithArguments("A<object>", "I<object?>").WithLocation(30, 40),
80194
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "y").WithArguments("A<object?>", "I<object>").WithLocation(33, 17),
80197
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x").WithArguments("A<object>", "I<object?>").WithLocation(34, 14),
80200
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(x, y)").WithArguments("(B<object> x, B<object?> y)", "(B<object>, B<object>)").WithLocation(42, 37),
80203
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(x, y)").WithArguments("(B<object> x, B<object?> y)", "(B<object?>, B<object?>)").WithLocation(43, 39),
80206
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x").WithArguments("B<object>", "IIn<object?>").WithLocation(45, 44),
80209
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x").WithArguments("B<object>", "IIn<object?>").WithLocation(47, 14),
80212
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(x, y)").WithArguments("(C<object> x, C<object?> y)", "(C<object>, C<object>)").WithLocation(53, 37),
80215
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(x, y)").WithArguments("(C<object> x, C<object?> y)", "(C<object?>, C<object?>)").WithLocation(54, 39),
80218
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "y").WithArguments("C<object?>", "IOut<object>").WithLocation(55, 47),
80221
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "y").WithArguments("C<object?>", "IOut<object>").WithLocation(57, 17),
80224
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(u, default(T))").WithArguments("(T u, T?)", "(T, T)").WithLocation(64, 22),
80227
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(default(T), u)").WithArguments("(object?, object? u)", "(object, object)").WithLocation(65, 31));
80278
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(x, y)").WithArguments("(string x, string? y)", "(string, string)?").WithLocation(12, 32),
80281
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(x, y)").WithArguments("(object x, object? y)", "(object, object)?").WithLocation(14, 32),
80284
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(x, y)").WithArguments("(A<object> x, A<object?> y)", "(A<object>, A<object>)?").WithLocation(19, 38),
80287
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(x, y)").WithArguments("(A<object> x, A<object?> y)", "(A<object?>, A<object?>)?").WithLocation(20, 40),
80290
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "y").WithArguments("A<object?>", "I<object>").WithLocation(21, 42),
80293
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x").WithArguments("A<object>", "I<object?>").WithLocation(22, 41),
80296
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x").WithArguments("B<object>", "IIn<object?>").WithLocation(27, 45),
80299
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "y").WithArguments("C<object?>", "IOut<object>").WithLocation(31, 48),
80302
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(u, default(T))").WithArguments("(T u, T?)", "(T, T)?").WithLocation(36, 23),
80305
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(default(T), u)").WithArguments("(object?, object? u)", "(object, object)?").WithLocation(37, 32));
80356
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "a1").WithArguments("(string x, string?)", "(string, string)").WithLocation(12, 31),
80359
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "a1").WithArguments("(string x, string?)", "(object, object)").WithLocation(14, 31),
80362
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "a2").WithArguments("(A<object> x, A<object?>)", "(A<object>, A<object>)").WithLocation(19, 37),
80365
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "a2").WithArguments("(A<object> x, A<object?>)", "(A<object?>, A<object?>)").WithLocation(20, 39),
80368
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "a2").WithArguments("(A<object> x, A<object?>)", "(I<object>, I<object>)").WithLocation(21, 37),
80371
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "a2").WithArguments("(A<object> x, A<object?>)", "(I<object?>, I<object?>)").WithLocation(22, 39),
80374
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "a3").WithArguments("(B<object> x, B<object?>)", "(IIn<object?>, IIn<object?>)").WithLocation(27, 43),
80377
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "a4").WithArguments("(C<object> x, C<object?>)", "(IOut<object>, IOut<object>)").WithLocation(31, 43),
80380
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "a5").WithArguments("(U, U)", "(object, object)").WithLocation(37, 31));
80431
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "((string, string))(x, y)").WithArguments("(string x, string? y)", "(string, string)").WithLocation(12, 18),
80434
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "((object, object))(x, y)").WithArguments("(object x, object? y)", "(object, object)").WithLocation(14, 18),
80440
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "((A<object>, A<object>))(x, y)").WithArguments("(A<object> x, A<object?> y)", "(A<object>, A<object>)").WithLocation(19, 18),
80443
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "((A<object?>, A<object?>))(x, y)").WithArguments("(A<object> x, A<object?> y)", "(A<object?>, A<object?>)").WithLocation(20, 18),
80446
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "y").WithArguments("A<object?>", "I<object>").WithLocation(21, 46),
80449
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x").WithArguments("A<object>", "I<object?>").WithLocation(22, 45),
80452
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x").WithArguments("B<object>", "IIn<object?>").WithLocation(27, 49),
80455
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "y").WithArguments("C<object?>", "IOut<object>").WithLocation(31, 52),
80458
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "((U, U))(t, default(T))").WithArguments("(U? t, U?)", "(U, U)").WithLocation(36, 18),
80461
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "((object, object))(default(T), t)").WithArguments("(object?, object? t)", "(object, object)").WithLocation(37, 18),
80518
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "((string, string)?)(x, y)").WithArguments("(string x, string? y)", "(string, string)?").WithLocation(12, 18),
80524
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "((object, object)?)(x, y)").WithArguments("(object x, object? y)", "(object, object)?").WithLocation(14, 18),
80530
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "y").WithArguments("A<object?>", "A<object>").WithLocation(19, 47),
80533
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x").WithArguments("A<object>", "A<object?>").WithLocation(20, 46),
80536
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "y").WithArguments("A<object?>", "I<object>").WithLocation(21, 47),
80539
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x").WithArguments("A<object>", "I<object?>").WithLocation(22, 46),
80542
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x").WithArguments("B<object>", "IIn<object?>").WithLocation(27, 50),
80545
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "y").WithArguments("C<object?>", "IOut<object>").WithLocation(31, 53),
80548
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "((U, U)?)(t, default(T))").WithArguments("(U? t, U?)", "(U, U)?").WithLocation(36, 18),
80551
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "((object, object)?)(default(T), t)").WithArguments("(object?, object? t)", "(object, object)?").WithLocation(37, 18),
80608
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "((string, string))a1").WithArguments("(string x, string?)", "(string, string)").WithLocation(12, 18),
80611
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "((object, object))a1").WithArguments("(string x, string?)", "(object, object)").WithLocation(14, 18),
80614
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "((A<object>, A<object>))a2").WithArguments("(A<object> x, A<object?>)", "(A<object>, A<object>)").WithLocation(19, 18),
80617
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "((A<object?>, A<object?>))a2").WithArguments("(A<object> x, A<object?>)", "(A<object?>, A<object?>)").WithLocation(20, 18),
80620
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "((I<object>, I<object>))a2").WithArguments("(A<object> x, A<object?>)", "(I<object>, I<object>)").WithLocation(21, 18),
80623
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "((I<object?>, I<object?>))a2").WithArguments("(A<object> x, A<object?>)", "(I<object?>, I<object?>)").WithLocation(22, 18),
80626
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "((IIn<object?>, IIn<object?>))a3").WithArguments("(B<object> x, B<object?>)", "(IIn<object?>, IIn<object?>)").WithLocation(27, 18),
80629
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "((IOut<object>, IOut<object>))a4").WithArguments("(C<object> x, C<object?>)", "(IOut<object>, IOut<object>)").WithLocation(31, 18),
80632
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "((object, object))default((T, T))").WithArguments("(T, T)", "(object, object)").WithLocation(37, 18));
81185
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(default(object), default(string))").WithArguments("(object?, string?)", "(object? a, string)").WithLocation(5, 33),
81188
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "t").WithArguments("(object? a, string)", "(object, string? b)").WithLocation(6, 33),
81230
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(null, x, y)").WithArguments("(object?, object? x, object y)", "(object x, object? y, object? z)").WithLocation(5, 46),
81239
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(x, default(object))").WithArguments("(object x, object?)", "(object x, object y)").WithLocation(11, 34),
81280
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(null, new A() { F = 1 })").WithArguments("(A?, A)", "(A, A?)").WithLocation(12, 22),
81286
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(null, new B() { F = 2 })").WithArguments("(A?, A)", "(A, A?)").WithLocation(20, 22),
81314
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(x, y)").WithArguments("(object? x, string? y)", "(object?, string)").WithLocation(5, 31),
81317
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "t").WithArguments("(object?, string)", "(object, string?)").WithLocation(6, 31),
81354
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(x, y)").WithArguments("(object x, string? y)", "(object?, string)").WithLocation(5, 31),
81357
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "t").WithArguments("(object?, string)", "(object a, string? b)").WithLocation(6, 35),
81391
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "((object, string))(x, y)").WithArguments("(object x, string? y)", "(object, string)").WithLocation(5, 30),
81476
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(x, x, x, y, y, (y, x), x, x, y, y)").WithArguments("(object, object, object, object?, object?, (object? y, object x), object, object, object?, object?)", "(object?, object, object?, object, object?, (object, object?), object, object, object?, object)").WithLocation(6, 13),
81538
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(x, x, x, default(object), default(object), default((object, object?)), x, x, default(object), default(object))").WithArguments("(object, object, object, object?, object?, (object, object?), object, object, object?, object?)", "(object?, object, object?, object, object?, (object, object?), object, object, object?, object)").WithLocation(6, 13),
81589
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, @"new ValueTuple<object?, string>(null, """") { Item1 = x }").WithArguments("(object?, string)", "(object, string?)").WithLocation(6, 31),
82004
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "t").WithArguments("(object? x, (string z, object? w) y)", "(object x, (string? z, object w) y)").WithLocation(6, 15),
82041
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(null, s)").WithArguments("(object?, object s)", "(object, object?)?").WithLocation(5, 32),
82122
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(x, 0)").WithArguments("(object? x, long)", "(object a, long b)").WithLocation(7, 32),
82125
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(x, (0, y)/*T:(int, string? y)*/)").WithArguments("(object? x, (long b, object c))", "(object a, (long b, object c))").WithLocation(8, 45),
82128
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(0, y)").WithArguments("(long, object? y)", "(long b, object c)").WithLocation(8, 49)
82180
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(default, default)").WithArguments("(object?, string?)", "(object? a, string)").WithLocation(5, 33),
82183
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "t").WithArguments("(object? a, string)", "(object, string? b)").WithLocation(6, 33),
82225
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(null, x, y)").WithArguments("(object?, object? x, object y)", "(object x, object? y, object? z)").WithLocation(5, 46),
82234
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(x, default)").WithArguments("(object x, object?)", "(object x, object y)").WithLocation(11, 34),
82259
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, @"new ValueTuple<object?, string>(item2: """", item1: null) { Item1 = x }").WithArguments("(object?, string)", "(object, string?)").WithLocation(6, 31));
83806
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(x, y, z)").WithArguments("(object? x, object y, object? z)", "(object, object, object)").WithLocation(7, 38),
84905
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(default(T), new U(), new V())").WithArguments("(T?, U, V?)", "(T, U, V?)").WithLocation(6, 24),
85795
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(B2?)x1").WithArguments("A<string>", "B2").WithLocation(19, 10),
85807
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(B2)y1").WithArguments("A<string>", "B2").WithLocation(20, 10),
85816
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(A<string?>?)x2").WithArguments("B1", "A<string?>").WithLocation(24, 10),
85828
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(A<string?>)y2").WithArguments("B1", "A<string?>").WithLocation(25, 10),
85852
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(A<string>?)x4").WithArguments("B2", "A<string>").WithLocation(34, 10),
85861
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(A<string>)y4").WithArguments("B2", "A<string>").WithLocation(35, 10),
85897
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(B<object?>)x1").WithArguments("A<object>", "B<object?>").WithLocation(9, 13),
85900
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(B<object>)y1").WithArguments("A<object?>", "B<object>").WithLocation(10, 13),
85903
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(A<object?>)x2").WithArguments("B<object>", "A<object?>").WithLocation(17, 13),
85906
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(A<object>)y2").WithArguments("B<object?>", "A<object>").WithLocation(18, 13));
86039
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(I<object?>)x1").WithArguments("A<object>", "I<object?>").WithLocation(13, 13),
86042
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(I<object>)y1").WithArguments("A<object?>", "I<object>").WithLocation(14, 13),
86045
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(A<object?>)x2").WithArguments("I<object>", "A<object?>").WithLocation(21, 13),
86048
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(A<object>)y2").WithArguments("I<object?>", "A<object>").WithLocation(22, 13),
86051
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(IIn<object?>)x3").WithArguments("B<object>", "IIn<object?>").WithLocation(29, 13),
86054
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(B<object>)y4").WithArguments("IIn<object?>", "B<object>").WithLocation(38, 13),
86057
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(IOut<object>)y5").WithArguments("C<object?>", "IOut<object>").WithLocation(46, 13),
86060
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(C<object?>)x6").WithArguments("IOut<object>", "C<object?>").WithLocation(53, 13));
86182
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(A<string>)x1").WithArguments("A<string?>", "A<string>").WithLocation(14, 18),
86185
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(A<string?>)x2").WithArguments("A<string>", "A<string?>").WithLocation(18, 18));
86229
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(B<T>)x1").WithArguments("B<T?>", "B<T>").WithLocation(17, 14),
86232
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(B<T>)y1").WithArguments("B<T?>", "B<T>").WithLocation(19, 14),
86238
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(B<T>)x2").WithArguments("B<T?>", "B<T>").WithLocation(26, 14),
86241
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(B<T?>)y2").WithArguments("B<T>", "B<T?>").WithLocation(27, 14));
86631
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "a1").WithArguments("I<object>", "I<object?>").WithLocation(9, 29),
86637
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "b1").WithArguments("I<object?>", "I<object>").WithLocation(11, 28),
86640
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "a2").WithArguments("IIn<object>", "IIn<object?>").WithLocation(16, 31),
86646
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "b3").WithArguments("IOut<object?>", "IOut<object>").WithLocation(25, 31));
86732
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "a3").WithArguments("A<object?>", "A<object>").WithLocation(16, 28),
86735
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "b1").WithArguments("A<object?>", "B").WithLocation(18, 20));
87139
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "item").WithArguments("object[]?[]", "object[][]").WithLocation(10, 29));
90223
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "y0").WithArguments("B<object, string?>", "B<object?, string>").WithLocation(17, 13),
90226
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "w0").WithArguments("B<object, string>", "B<object?, string>").WithLocation(19, 13),
90229
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "z0").WithArguments("B<object?, string>", "B<object, string?>").WithLocation(20, 13),
90232
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "w0").WithArguments("B<object, string>", "B<object, string?>").WithLocation(21, 13),
90235
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "z0").WithArguments("B<object?, string>", "B<object, string>").WithLocation(22, 13)
92543
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "((S, S))t").WithArguments("(S?, object?)", "(S, S)").WithLocation(11, 10),
92546
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "((S, S))t").WithArguments("(S?, object?)", "(S, S)").WithLocation(12, 10),
92576
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "((string, string))t1").WithArguments("(object?, object)", "(string, string)").WithLocation(5, 18),
92610
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(a, b)").WithArguments("(B? a, B b)", "(B, B)").WithLocation(12, 20),
92641
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "((B, B))(b, a)").WithArguments("(B b, B? a)", "(B, B)").WithLocation(12, 17),
92689
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(new A(), new S() { F = 1 })").WithArguments("(B?, S)", "(B, S)").WithLocation(16, 21),
92695
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(new A(), new S() { F = 3 })").WithArguments("(B?, S?)", "(B, S?)").WithLocation(28, 22),
92743
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "((S, B))(new S() { F = 1 }, new A())").WithArguments("(S, B?)", "(S, B)").WithLocation(16, 18),
92758
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "((S?, B))(new S() { F = 3 }, new A())").WithArguments("(S?, B?)", "(S?, B)").WithLocation(28, 18),
93342
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "((T?, T?))(new T() { P = 1 }, new T() { Q = null })").WithArguments("(T?, T?)", "(object, object)").WithLocation(10, 30),
119859
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "y").WithArguments("A<object>", "A<object?>").WithLocation(18, 16));
119894
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "y").WithArguments("A<object>", "A<object?>").WithLocation(18, 16));
122956
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "new C<object?>() { F = null }").WithArguments("C<object?>", "C<object>").WithLocation(10, 23),
122962
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "new C<object>() { F = new object() }").WithArguments("C<object>", "C<object?>").WithLocation(12, 24));
122990
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "new S<object?>()").WithArguments("S<object?>", "S<object>").WithLocation(10, 23),
122996
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "new S<object>() { F = new object() }").WithArguments("S<object>", "S<object?>").WithLocation(12, 24));
123027
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "new { F = y1 }").WithArguments("<anonymous type: C<object?>? F>", "<anonymous type: C<object> F>").WithLocation(8, 14),
123036
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "new { F = y2 }").WithArguments("<anonymous type: C<object?> F>", "<anonymous type: C<object>? F>").WithLocation(15, 14));
123067
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(y1, y1)").WithArguments("(C<object?>?, C<object?>?)", "(C<object> x1, C<object?>? y1)").WithLocation(8, 14),
123076
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(y2, y2)").WithArguments("(C<object?>, C<object?>)", "(C<object>? x2, C<object?> y2)").WithLocation(15, 14));
123099
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(x, y)").WithArguments("(C<object> x, C<object?>? y)", "(C<object?>? a, C<object> b)").WithLocation(6, 42),
127566
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "a").WithArguments("A<object?>", "A<object>").WithLocation(12, 15),
127596
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "b").WithArguments("A<object>", "A<object?>").WithLocation(12, 24),
127968
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(null, null)").WithArguments("(T?, U?)", "(T? t1, U? u2)").WithLocation(20, 24),
127971
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(null, null)").WithArguments("(T?, U?)", "(T t2, U? u1)").WithLocation(24, 31));
128001
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(null, null)").WithArguments("(T?, T?)", "(T, T)").WithLocation(11, 59),
128004
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(null, new T())").WithArguments("(T?, T)", "(T, T)").WithLocation(12, 32));
128035
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(y, default)").WithArguments("(T? y, T?)", "(T, T)").WithLocation(12, 47),
128038
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(null, x)").WithArguments("(T?, T x)", "(T x, T? y)").WithLocation(13, 32));
128068
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(x, null)").WithArguments("(object? x, object?)", "(object, object)").WithLocation(11, 47),
128071
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(default, x)").WithArguments("(T?, object? x)", "(T? x, object y)").WithLocation(12, 32));
128092
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "s").WithArguments("A<string[][][*,*]?>", "A<object>").WithLocation(6, 13)
128565
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "c2").WithArguments("C<object?>", "C<object>").WithLocation(6, 16),
128571
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "c4").WithArguments("C<object>", "C<object?>").WithLocation(7, 16));
128911
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(default, new T())").WithArguments("(T?, T)", "(T, T?)").WithLocation(5, 21),
128986
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(default, new T())").WithArguments("(T?, T)", "(T, T?)").WithLocation(5, 21),
129136
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(y, z)").WithArguments("(object y, object? z)", "(object x, object y)").WithLocation(5, 62),
129484
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(x, x, x, y, y, (y, x), x, x, y, y)").WithArguments("(object, object, object, object?, object?, (object? y, object x), object, object, object?, object?)", "(object?, object, object?, object, object?, (object, object?), object, object, object?, object)").WithLocation(5, 109),
129592
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "el").WithArguments("(object?, object?)", "(object, object)").WithLocation(45, 35),
130913
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "t").WithArguments("S<T?>", "S<T>?").WithLocation(10, 31),
130916
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "t").WithArguments("S<T>", "S<T?>?").WithLocation(10, 31),
130945
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "t").WithArguments("(S<T?>, S<T>)", "(S<T>? x, S<T?>? y)").WithLocation(10, 45),
131464
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x").WithArguments("string", "string?").WithLocation(5, 29)
131488
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x").WithArguments("string?", "string").WithLocation(5, 20),
131491
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "y").WithArguments("string", "string?").WithLocation(9, 20)
132657
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "g").WithArguments("G<string?>", "G<string>").WithLocation(17, 24));
133927
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "new C()").WithArguments("C", "Base<string?>").WithLocation(5, 23)
133967
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "new C()").WithArguments("C", "Base<string>").WithLocation(4, 22)
134011
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "new C()").WithArguments("C", "Base<string?>").WithLocation(5, 23)
134054
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "new C()").WithArguments("C", "Base<string>").WithLocation(4, 22)
134096
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "new C()").WithArguments("C", "Base<string?>").WithLocation(5, 23)
134132
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "new C()").WithArguments("C", "Base<string, object>").WithLocation(5, 30),
134135
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "new C()").WithArguments("C", "Base<string?, object?>").WithLocation(6, 32)
134226
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "new C1()").WithArguments("C1", "Base<S, object>").WithLocation(5, 25),
134229
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "new C2()").WithArguments("C2", "Base<object?, S>").WithLocation(7, 26)
134271
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "new C1()").WithArguments("C1", "Base<S?, object>").WithLocation(5, 26),
134274
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "new C2()").WithArguments("C2", "Base<object?, S?>").WithLocation(7, 27)
134324
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "new C1()").WithArguments("C1", "Base<S, object>").WithLocation(5, 25),
134327
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "new C2()").WithArguments("C2", "Base<object?, S>").WithLocation(7, 26)
134370
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "new C1()").WithArguments("C1", "Base<S?, object>").WithLocation(5, 26),
134373
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "new C2()").WithArguments("C2", "Base<object?, S?>").WithLocation(7, 27)
134422
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "new C1<S>()").WithArguments("C1<S>", "Base<S, object>").WithLocation(5, 25),
134425
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "new C2<S>()").WithArguments("C2<S>", "Base<object?, S>").WithLocation(7, 26)
136285
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, @"new[] { ""string"", null }").WithArguments("string?[]", "System.Collections.Generic.IEnumerable<object>").WithLocation(7, 34),
136288
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, @"new[] { ""string"", null }").WithArguments("string?[]", "System.Collections.Generic.IList<string>").WithLocation(10, 28)
136314
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, @"new[] { new[] { ""string"", null } }").WithArguments("string?[][]", "System.Collections.Generic.IEnumerable<object[]>").WithLocation(7, 36),
136317
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, @"new[] { new[] { ""string"", null } }").WithArguments("string?[][]", "System.Collections.Generic.IEnumerable<object[]?>").WithLocation(8, 37),
136320
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, @"new[] { new[] { ""string"" , null } }").WithArguments("string?[][]", "System.Collections.Generic.IEnumerable<System.Collections.Generic.IEnumerable<string>>").WithLocation(11, 47)
140703
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "i3").WithArguments("System.IEquatable<A>", "System.IEquatable<A?>").WithLocation(41, 29),
140706
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "i7").WithArguments("System.IEquatable<(B, B)>", "System.IEquatable<(B?, B?)>").WithLocation(47, 35)
140816
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "i1").WithArguments("IEquatable<A?>", "IEquatable<A>").WithLocation(14, 28),
140819
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "i2").WithArguments("IEquatable<A>", "IEquatable<A?>").WithLocation(15, 29));
149519
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "b ? ref x2 : ref y2").WithArguments("T", "T?").WithLocation(15, 25),
149522
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "b ? ref x2 : ref y2").WithArguments("T", "T?").WithLocation(15, 25),
149525
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "b ? ref y2 : ref x2").WithArguments("T?", "T").WithLocation(16, 25),
149528
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "b ? ref y2 : ref x2").WithArguments("T", "T?").WithLocation(16, 25),
149531
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "b ? ref x4 : ref y4").WithArguments("I<T>", "I<T?>").WithLocation(29, 28),
149534
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "b ? ref y4 : ref x4").WithArguments("I<T?>", "I<T>").WithLocation(30, 28));
154439
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "value2").WithArguments("T?", "T").WithLocation(9, 20)
154951
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "GetC2(s)").WithArguments("C2<string?>", "C2<string>").WithLocation(13, 26),
154954
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, @"GetC2(""b"")").WithArguments("C2<string>", "C2<string?>").WithLocation(13, 41),
154960
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, @"GetC2(""c1"")").WithArguments("C2<string>", "C2<string?>").WithLocation(18, 26),
154963
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, @"GetC2(""c2"")").WithArguments("C2<string>", "C2<string?>").WithLocation(18, 44),
154966
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, @"new C2<string>(""d1"")").WithArguments("C2<string>", "C2<string?>").WithLocation(20, 42),
154969
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, @"new C2<string>(""d2"")").WithArguments("C2<string>", "C2<string?>").WithLocation(20, 69),
154972
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "GetC2(s)").WithArguments("C2<string?>", "C2<string>").WithLocation(22, 41),
154975
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, @"GetC2(""e"")").WithArguments("C2<string>", "C2<string?>").WithLocation(22, 56),
155290
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "GetC2(s)").WithArguments("C2<string?>", "C2<string>").WithLocation(13, 26),
155293
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, @"GetC2(""b"")").WithArguments("C2<string>", "C2<string?>").WithLocation(13, 41),
155299
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, @"GetC2(""c1"")").WithArguments("C2<string>", "C2<string?>").WithLocation(18, 26),
155302
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, @"GetC2(""c2"")").WithArguments("C2<string>", "C2<string?>").WithLocation(18, 44),
155305
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, @"new C2<string>(""d1"")").WithArguments("C2<string>", "C2<string?>").WithLocation(20, 59),
155308
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, @"new C2<string>(""d2"")").WithArguments("C2<string>", "C2<string?>").WithLocation(20, 86),
155311
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "GetC2(s)").WithArguments("C2<string?>", "C2<string>").WithLocation(22, 57),
155314
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, @"GetC2(""e"")").WithArguments("C2<string>", "C2<string?>").WithLocation(22, 72),
155664
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "GetC2(s)").WithArguments("C2<string?>", "C2<string>").WithLocation(13, 28),
155667
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, @"GetC2(""b"")").WithArguments("C2<string>", "C2<string?>").WithLocation(13, 43),
155673
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, @"GetC2(""c1"")").WithArguments("C2<string>", "C2<string?>").WithLocation(18, 28),
155676
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, @"GetC2(""c2"")").WithArguments("C2<string>", "C2<string?>").WithLocation(18, 46),
155679
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, @"new C2<string>(""d1"")").WithArguments("C2<string>", "C2<string?>").WithLocation(20, 44),
155682
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, @"new C2<string>(""d2"")").WithArguments("C2<string>", "C2<string?>").WithLocation(20, 71),
155685
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "GetC2(s)").WithArguments("C2<string?>", "C2<string>").WithLocation(22, 43),
155688
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, @"GetC2(""e"")").WithArguments("C2<string>", "C2<string?>").WithLocation(22, 58),
Semantics\NullableReferenceTypesVsPatterns.cs (2)
1981
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "y").WithArguments("I<string?>", "I<string>").WithLocation(39, 37),
1984
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "y").WithArguments("I<string?>", "I<string>").WithLocation(40, 29)
Semantics\RefFieldTests.cs (4)
20672
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x2").WithArguments("S<object?>", "S<object>").WithLocation(8, 33),
20675
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x1").WithArguments("S<object>", "S<object?>").WithLocation(9, 34),
20678
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x2").WithArguments("S<object?>", "S<object>").WithLocation(13, 40),
20681
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "x1").WithArguments("S<object>", "S<object?>").WithLocation(14, 41)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (4)
Symbols\Source\NullablePublicAPITests.cs (4)
44
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(C[])arr1").WithArguments("C?[]", "C[]").WithLocation(6, 20),
1469
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(x, (short)0)").WithArguments("(object? x, int)", "(object a, int b)").WithLocation(9, 32),
1472
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(default, default)").WithArguments("(object?, int)", "(object a, int b)").WithLocation(10, 32),
1475
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInAssignment
, "(default(object), default(int))").WithArguments("(object?, int)", "(object a, int b)").WithLocation(11, 32)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Diagnostics\DiagnosticTest.cs (1)
341
case ErrorCode.
WRN_NullabilityMismatchInAssignment
: