21 references to ERR_BadFieldTypeInRecord
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
2106
case ErrorCode.
ERR_BadFieldTypeInRecord
:
Symbols\Synthesized\Records\SynthesizedRecordEquals.cs (1)
147
diagnostics.Add(ErrorCode.
ERR_BadFieldTypeInRecord
, f.Locations.FirstOrNone(), parameterType);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (19)
Semantics\RecordStructTests.cs (10)
1507
Diagnostic(ErrorCode.
ERR_BadFieldTypeInRecord
, "P1").WithArguments("int*").WithLocation(7, 10),
1510
Diagnostic(ErrorCode.
ERR_BadFieldTypeInRecord
, "P2").WithArguments("int*[]").WithLocation(8, 12),
1513
Diagnostic(ErrorCode.
ERR_BadFieldTypeInRecord
, "P4").WithArguments("delegate*<int, int>").WithLocation(10, 25),
1562
Diagnostic(ErrorCode.
ERR_BadFieldTypeInRecord
, "f1").WithArguments("int*").WithLocation(8, 17),
1565
Diagnostic(ErrorCode.
ERR_BadFieldTypeInRecord
, "f2").WithArguments("int*[]").WithLocation(9, 19),
1568
Diagnostic(ErrorCode.
ERR_BadFieldTypeInRecord
, "f4").WithArguments("delegate*<int, int>").WithLocation(11, 32),
1614
Diagnostic(ErrorCode.
ERR_BadFieldTypeInRecord
, "f1").WithArguments("int*").WithLocation(8, 17),
1617
Diagnostic(ErrorCode.
ERR_BadFieldTypeInRecord
, "f2").WithArguments("int*[]").WithLocation(9, 19),
1620
Diagnostic(ErrorCode.
ERR_BadFieldTypeInRecord
, "f4").WithArguments("delegate*<int, int>").WithLocation(11, 32),
10604
Diagnostic(ErrorCode.
ERR_BadFieldTypeInRecord
, "P").WithArguments("int*").WithLocation(4, 22)
Semantics\RecordTests.cs (9)
1251
Diagnostic(ErrorCode.
ERR_BadFieldTypeInRecord
, "P1").WithArguments("int*").WithLocation(7, 10),
1254
Diagnostic(ErrorCode.
ERR_BadFieldTypeInRecord
, "P2").WithArguments("int*[]").WithLocation(8, 12),
1257
Diagnostic(ErrorCode.
ERR_BadFieldTypeInRecord
, "P4").WithArguments("delegate*<int, int>").WithLocation(10, 25),
1306
Diagnostic(ErrorCode.
ERR_BadFieldTypeInRecord
, "f1").WithArguments("int*").WithLocation(8, 17),
1309
Diagnostic(ErrorCode.
ERR_BadFieldTypeInRecord
, "f2").WithArguments("int*[]").WithLocation(9, 19),
1312
Diagnostic(ErrorCode.
ERR_BadFieldTypeInRecord
, "f4").WithArguments("delegate*<int, int>").WithLocation(11, 32),
1358
Diagnostic(ErrorCode.
ERR_BadFieldTypeInRecord
, "f1").WithArguments("int*").WithLocation(8, 17),
1361
Diagnostic(ErrorCode.
ERR_BadFieldTypeInRecord
, "f2").WithArguments("int*[]").WithLocation(9, 19),
1364
Diagnostic(ErrorCode.
ERR_BadFieldTypeInRecord
, "f4").WithArguments("delegate*<int, int>").WithLocation(11, 32),