25 references to WRN_NullabilityMismatchInArgumentForOutput
Microsoft.CodeAnalysis.CSharp (5)
Errors\ErrorFacts.cs (3)
35
nullableWarnings.Add(GetId(ErrorCode.
WRN_NullabilityMismatchInArgumentForOutput
));
453
case ErrorCode.
WRN_NullabilityMismatchInArgumentForOutput
:
1967
or ErrorCode.
WRN_NullabilityMismatchInArgumentForOutput
FlowAnalysis\NullableWalker.cs (1)
11289
ReportDiagnostic(forOutput ? ErrorCode.
WRN_NullabilityMismatchInArgumentForOutput
: ErrorCode.WRN_NullabilityMismatchInArgument,
Generated\ErrorFacts.Generated.cs (1)
216
case ErrorCode.
WRN_NullabilityMismatchInArgumentForOutput
:
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (19)
Semantics\DynamicTests.cs (6)
10601
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgumentForOutput
, "c[d]").WithArguments("dynamic", "int", "x", "void C2.Deconstruct(out int x, out int y)").WithLocation(10, 18)
10643
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgumentForOutput
, "c[d]").WithArguments("dynamic", "int?", "x", "void C2.Deconstruct(out int? x, out int y)").WithLocation(10, 18)
10750
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgumentForOutput
, "c[d]").WithArguments("dynamic", "int", "x", "void C2.Deconstruct(out int x, out int y)").WithLocation(10, 18)
10793
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgumentForOutput
, "c[d]").WithArguments("dynamic", "int?", "x", "void C2.Deconstruct(out int? x, out int y)").WithLocation(10, 18)
11019
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgumentForOutput
, "c[d]").WithArguments("dynamic", "int", "x", "void C2.Deconstruct(out int x, out int y)").WithLocation(10, 18)
11059
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgumentForOutput
, "c[d]").WithArguments("dynamic", "int?", "x", "void C2.Deconstruct(out int? x, out int y)").WithLocation(10, 18)
Semantics\NullableReferenceTypesTests.cs (13)
19577
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgumentForOutput
, "x2").WithArguments("CL0<string>", "CL0<string?>", "x", "void C.M2(out CL0<string?> x)").WithLocation(19, 16),
36251
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgumentForOutput
, "s2").WithArguments("C<string>", "C<string?>", "s", "void C<T>.M(out C<string?> s)").WithLocation(9, 15)
71624
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgumentForOutput
, "x").WithArguments("IIn<object?>", "IIn<object>", "x", "void C<object>.Deconstruct(out IIn<object> x, out IOut<object> y)").WithLocation(13, 10),
71627
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgumentForOutput
, "y").WithArguments("IOut<object>", "IOut<object?>", "y", "void C<object?>.Deconstruct(out IIn<object?> x, out IOut<object?> y)").WithLocation(19, 13)
73967
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgumentForOutput
, "x").WithArguments("I<object>", "I<object?>", "x", "void C.G(out I<object?> x, out IIn<object?> y, out IOut<object?> z)").WithLocation(8, 15),
73970
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgumentForOutput
, "z").WithArguments("IOut<object>", "IOut<object?>", "z", "void C.G(out I<object?> x, out IIn<object?> y, out IOut<object?> z)").WithLocation(8, 29),
73973
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgumentForOutput
, "x").WithArguments("I<object?>", "I<object>", "x", "void C.F(out I<object> x, out IIn<object> y, out IOut<object> z)").WithLocation(12, 15),
73976
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgumentForOutput
, "y").WithArguments("IIn<object?>", "IIn<object>", "y", "void C.F(out I<object> x, out IIn<object> y, out IOut<object> z)").WithLocation(12, 22)
80195
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgumentForOutput
, "c").WithArguments("List<string?>", "List<string>", "b", "void C.F(out List<string> a, out List<string>? b, out List<string?> c, out List<string?>? d)").WithLocation(11, 22),
80201
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgumentForOutput
, "a").WithArguments("List<string>", "List<string?>", "d", "void C.F(out List<string> a, out List<string>? b, out List<string?> c, out List<string?>? d)").WithLocation(11, 36)
84663
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgumentForOutput
, "(string, string) t1").WithArguments("(string, string)", "(string, string?)", "t", "string C.F<string>(out (string, string?) t)").WithLocation(6, 15),
84666
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgumentForOutput
, "(string?, string) t3").WithArguments("(string?, string)", "(string, string?)", "t", "string C.F<string>(out (string, string?) t)").WithLocation(8, 15),
84669
Diagnostic(ErrorCode.
WRN_NullabilityMismatchInArgumentForOutput
, "(string?, string?) t4").WithArguments("(string?, string?)", "(string, string?)", "t", "string C.F<string>(out (string, string?) t)").WithLocation(9, 15));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Diagnostics\DiagnosticTest.cs (1)
365
case ErrorCode.
WRN_NullabilityMismatchInArgumentForOutput
: