13 references to ERR_ConversionNotTupleCompatible
Microsoft.CodeAnalysis.CSharp (3)
Binder\Binder_Expressions.cs (1)
2590
Error(diagnostics, ErrorCode.
ERR_ConversionNotTupleCompatible
, syntax, tuple.Arguments.Length, targetType);
Binder\Binder_Statements.cs (1)
2312
Error(diagnostics, ErrorCode.
ERR_ConversionNotTupleCompatible
, syntax, tuple.Arguments.Length, targetType);
Errors\ErrorFacts.cs (1)
1697
case 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)
7045
Diagnostic(ErrorCode.
ERR_ConversionNotTupleCompatible
, "(null, null, null)").WithArguments("3", "(int, int)").WithLocation(8, 13),
7102
Diagnostic(ErrorCode.
ERR_ConversionNotTupleCompatible
, "((int, int))(null, null, null)").WithArguments("3", "(int, int)").WithLocation(8, 13),
7160
Diagnostic(ErrorCode.
ERR_ConversionNotTupleCompatible
, "(null, null, null)").WithArguments("3", "(int, int)").WithLocation(8, 13),
7219
Diagnostic(ErrorCode.
ERR_ConversionNotTupleCompatible
, "(null, null, null)").WithArguments("3", "(string, string)").WithLocation(8, 13),
7275
Diagnostic(ErrorCode.
ERR_ConversionNotTupleCompatible
, "(null, null, null)").WithArguments("3", "(int, int)").WithLocation(8, 14),
8055
Diagnostic(ErrorCode.
ERR_ConversionNotTupleCompatible
, "((long c, long d))(1, null, 2)").WithArguments("3", "(long c, long d)").WithLocation(6, 29)
25802
Diagnostic(ErrorCode.
ERR_ConversionNotTupleCompatible
, "(e, null)").WithArguments("2", "(int, string)?").WithLocation(7, 28)
25847
Diagnostic(ErrorCode.
ERR_ConversionNotTupleCompatible
, "(e, null)").WithArguments("2", "(int, string)?").WithLocation(7, 16)
25873
Diagnostic(ErrorCode.
ERR_ConversionNotTupleCompatible
, "(e, null)").WithArguments("2", "(int, string, int)").WithLocation(7, 32)