16 references to ERR_PredefinedValueTupleTypeMustBeStruct
Microsoft.CodeAnalysis.CSharp (2)
Emitter\Model\PEModuleBuilder.cs (1)
1108
new CSDiagnosticInfo(ErrorCode.
ERR_PredefinedValueTupleTypeMustBeStruct
, namedTypeSymbol.MetadataName),
Errors\ErrorFacts.cs (1)
1801
or ErrorCode.
ERR_PredefinedValueTupleTypeMustBeStruct
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (14)
CodeGen\CodeGenTupleTest.cs (14)
22905
Diagnostic(ErrorCode.
ERR_PredefinedValueTupleTypeMustBeStruct
, "public ValueTuple(T1 item1, T2 item2) { this.Item1 = item1; this.Item2 = item2; }").WithArguments("ValueTuple`2").WithLocation(23, 9)
22971
Diagnostic(ErrorCode.
ERR_PredefinedValueTupleTypeMustBeStruct
, "x = (1,2,3,4,5,6,7,8,9)").WithArguments("ValueTuple`8").WithLocation(6, 13),
22974
Diagnostic(ErrorCode.
ERR_PredefinedValueTupleTypeMustBeStruct
, "x = (1,2,3,4,5,6,7,8,9)").WithArguments("ValueTuple`2").WithLocation(6, 13),
22977
Diagnostic(ErrorCode.
ERR_PredefinedValueTupleTypeMustBeStruct
, @"public ValueTuple(T1 item1, T2 item2) { this.Item1 = item1; this.Item2 = item2; }").WithArguments("ValueTuple`2").WithLocation(19, 9)
23015
Diagnostic(ErrorCode.
ERR_PredefinedValueTupleTypeMustBeStruct
, "public ValueTuple(T1 item1, T2 item2) { this.Item1 = item1; this.Item2 = item2; }").WithArguments("ValueTuple`2").WithLocation(20, 9)
23048
Diagnostic(ErrorCode.
ERR_PredefinedValueTupleTypeMustBeStruct
).WithArguments("ValueTuple`2").WithLocation(1, 1),
23050
Diagnostic(ErrorCode.
ERR_PredefinedValueTupleTypeMustBeStruct
).WithArguments("ValueTuple`2").WithLocation(1, 1)
23091
Diagnostic(ErrorCode.
ERR_PredefinedValueTupleTypeMustBeStruct
, "x = null").WithArguments("ValueTuple`2").WithLocation(10, 22),
23094
Diagnostic(ErrorCode.
ERR_PredefinedValueTupleTypeMustBeStruct
, "public ValueTuple(T1 item1, T2 item2) { this.Item1 = item1; this.Item2 = item2; }").WithArguments("ValueTuple`2").WithLocation(23, 9)
23130
Diagnostic(ErrorCode.
ERR_PredefinedValueTupleTypeMustBeStruct
, "{ return (1, 1); }").WithArguments("ValueTuple`2").WithLocation(8, 35),
23133
Diagnostic(ErrorCode.
ERR_PredefinedValueTupleTypeMustBeStruct
, "(1, 1)").WithArguments("ValueTuple`2").WithLocation(8, 44),
23136
Diagnostic(ErrorCode.
ERR_PredefinedValueTupleTypeMustBeStruct
, "public ValueTuple(T1 item1, T2 item2) { this.Item1 = item1; this.Item2 = item2; }").WithArguments("ValueTuple`2").WithLocation(18, 9)
23257
Diagnostic(ErrorCode.
ERR_PredefinedValueTupleTypeMustBeStruct
).WithArguments("ValueTuple`2").WithLocation(1, 1),
23259
Diagnostic(ErrorCode.
ERR_PredefinedValueTupleTypeMustBeStruct
).WithArguments("ValueTuple`2").WithLocation(1, 1));