16 references to ERR_PredefinedValueTupleTypeMustBeStruct
Microsoft.CodeAnalysis.CSharp (2)
Emitter\Model\PEModuleBuilder.cs (1)
1089
new CSDiagnosticInfo(ErrorCode.
ERR_PredefinedValueTupleTypeMustBeStruct
, namedTypeSymbol.MetadataName),
Errors\ErrorFacts.cs (1)
1741
case ErrorCode.
ERR_PredefinedValueTupleTypeMustBeStruct
:
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (14)
CodeGen\CodeGenTupleTest.cs (14)
22937
Diagnostic(ErrorCode.
ERR_PredefinedValueTupleTypeMustBeStruct
, "public ValueTuple(T1 item1, T2 item2) { this.Item1 = item1; this.Item2 = item2; }").WithArguments("ValueTuple`2").WithLocation(23, 9)
23003
Diagnostic(ErrorCode.
ERR_PredefinedValueTupleTypeMustBeStruct
, "x = (1,2,3,4,5,6,7,8,9)").WithArguments("ValueTuple`8").WithLocation(6, 13),
23006
Diagnostic(ErrorCode.
ERR_PredefinedValueTupleTypeMustBeStruct
, "x = (1,2,3,4,5,6,7,8,9)").WithArguments("ValueTuple`2").WithLocation(6, 13),
23009
Diagnostic(ErrorCode.
ERR_PredefinedValueTupleTypeMustBeStruct
, @"public ValueTuple(T1 item1, T2 item2) { this.Item1 = item1; this.Item2 = item2; }").WithArguments("ValueTuple`2").WithLocation(19, 9)
23047
Diagnostic(ErrorCode.
ERR_PredefinedValueTupleTypeMustBeStruct
, "public ValueTuple(T1 item1, T2 item2) { this.Item1 = item1; this.Item2 = item2; }").WithArguments("ValueTuple`2").WithLocation(20, 9)
23080
Diagnostic(ErrorCode.
ERR_PredefinedValueTupleTypeMustBeStruct
).WithArguments("ValueTuple`2").WithLocation(1, 1),
23082
Diagnostic(ErrorCode.
ERR_PredefinedValueTupleTypeMustBeStruct
).WithArguments("ValueTuple`2").WithLocation(1, 1)
23123
Diagnostic(ErrorCode.
ERR_PredefinedValueTupleTypeMustBeStruct
, "x = null").WithArguments("ValueTuple`2").WithLocation(10, 22),
23126
Diagnostic(ErrorCode.
ERR_PredefinedValueTupleTypeMustBeStruct
, "public ValueTuple(T1 item1, T2 item2) { this.Item1 = item1; this.Item2 = item2; }").WithArguments("ValueTuple`2").WithLocation(23, 9)
23162
Diagnostic(ErrorCode.
ERR_PredefinedValueTupleTypeMustBeStruct
, "{ return (1, 1); }").WithArguments("ValueTuple`2").WithLocation(8, 35),
23165
Diagnostic(ErrorCode.
ERR_PredefinedValueTupleTypeMustBeStruct
, "(1, 1)").WithArguments("ValueTuple`2").WithLocation(8, 44),
23168
Diagnostic(ErrorCode.
ERR_PredefinedValueTupleTypeMustBeStruct
, "public ValueTuple(T1 item1, T2 item2) { this.Item1 = item1; this.Item2 = item2; }").WithArguments("ValueTuple`2").WithLocation(18, 9)
23289
Diagnostic(ErrorCode.
ERR_PredefinedValueTupleTypeMustBeStruct
).WithArguments("ValueTuple`2").WithLocation(1, 1),
23291
Diagnostic(ErrorCode.
ERR_PredefinedValueTupleTypeMustBeStruct
).WithArguments("ValueTuple`2").WithLocation(1, 1));