23 references to ERR_ConversionNotTupleCompatible
Microsoft.CodeAnalysis.CSharp (3)
Binder\Binder_Expressions.cs (1)
2850
Error(diagnostics, ErrorCode.
ERR_ConversionNotTupleCompatible
, syntax, tuple.Arguments.Length, targetType);
Binder\Binder_Statements.cs (1)
2364
Error(diagnostics, ErrorCode.
ERR_ConversionNotTupleCompatible
, syntax, tuple.Arguments.Length, targetType);
Errors\ErrorFacts.cs (1)
1759
or ErrorCode.
ERR_ConversionNotTupleCompatible
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (10)
CodeGen\CodeGenTupleTest.cs (10)
1558
Diagnostic(ErrorCode.
ERR_ConversionNotTupleCompatible
, "(1, null, 2)").WithArguments("3", "(int, string)").WithLocation(6, 27)
7050
Diagnostic(ErrorCode.
ERR_ConversionNotTupleCompatible
, "(null, null, null)").WithArguments("3", "(int, int)").WithLocation(8, 13),
7106
Diagnostic(ErrorCode.
ERR_ConversionNotTupleCompatible
, "((int, int))(null, null, null)").WithArguments("3", "(int, int)").WithLocation(8, 13),
7163
Diagnostic(ErrorCode.
ERR_ConversionNotTupleCompatible
, "(null, null, null)").WithArguments("3", "(int, int)").WithLocation(8, 13),
7220
Diagnostic(ErrorCode.
ERR_ConversionNotTupleCompatible
, "(null, null, null)").WithArguments("3", "(string, string)").WithLocation(8, 13),
7274
Diagnostic(ErrorCode.
ERR_ConversionNotTupleCompatible
, "(null, null, null)").WithArguments("3", "(int, int)").WithLocation(8, 14),
8049
Diagnostic(ErrorCode.
ERR_ConversionNotTupleCompatible
, "((long c, long d))(1, null, 2)").WithArguments("3", "(long c, long d)").WithLocation(6, 29)
25764
Diagnostic(ErrorCode.
ERR_ConversionNotTupleCompatible
, "(e, null)").WithArguments("2", "(int, string)?").WithLocation(7, 28)
25809
Diagnostic(ErrorCode.
ERR_ConversionNotTupleCompatible
, "(e, null)").WithArguments("2", "(int, string)?").WithLocation(7, 16)
25835
Diagnostic(ErrorCode.
ERR_ConversionNotTupleCompatible
, "(e, null)").WithArguments("2", "(int, string, int)").WithLocation(7, 32)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (10)
Semantics\UserDefinedConversionTests.cs (10)
1955
Diagnostic(ErrorCode.
ERR_ConversionNotTupleCompatible
, @"(""a"", new())").WithArguments("2", "C").WithLocation(1, 7));
1997
Diagnostic(ErrorCode.
ERR_ConversionNotTupleCompatible
, @"(""a"", default)").WithArguments("2", "C").WithLocation(1, 7));
2039
Diagnostic(ErrorCode.
ERR_ConversionNotTupleCompatible
, @"(""a"", null)").WithArguments("2", "C").WithLocation(1, 7));
2059
Diagnostic(ErrorCode.
ERR_ConversionNotTupleCompatible
, @"(""a"", ""b"" switch { _ => default })").WithArguments("2", "C").WithLocation(1, 7));
2101
Diagnostic(ErrorCode.
ERR_ConversionNotTupleCompatible
, @"(""a"", ""b"" switch { _ => null })").WithArguments("2", "C").WithLocation(1, 7));
2121
Diagnostic(ErrorCode.
ERR_ConversionNotTupleCompatible
, @"(""a"", [default])").WithArguments("2", "C").WithLocation(1, 7));
2163
Diagnostic(ErrorCode.
ERR_ConversionNotTupleCompatible
, @"(""a"", [null])").WithArguments("2", "C").WithLocation(1, 7));
2184
Diagnostic(ErrorCode.
ERR_ConversionNotTupleCompatible
, @"(""a"", b ? default : throw null!)").WithArguments("2", "C").WithLocation(2, 7));
2228
Diagnostic(ErrorCode.
ERR_ConversionNotTupleCompatible
, @"(""a"", b ? null : throw null!)").WithArguments("2", "C").WithLocation(2, 7));
2282
Diagnostic(ErrorCode.
ERR_ConversionNotTupleCompatible
, @"(""value3"", new /*specific type is omitted*/ (StringComparer.OrdinalIgnoreCase)