48 references to ERR_InterfacesCantContainFields
Microsoft.CodeAnalysis.CSharp (3)
Errors\ErrorFacts.cs (1)
937or ErrorCode.ERR_InterfacesCantContainFields
Symbols\Source\SourceMemberFieldSymbol.cs (1)
383diagnostics.Add(ErrorCode.ERR_InterfacesCantContainFields, ErrorLocation);
Symbols\Source\SourcePropertySymbolBase.cs (1)
929diagnostics.Add(ErrorCode.ERR_InterfacesCantContainFields, Location);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (24)
FieldKeywordTests.cs (23)
965Diagnostic(ErrorCode.ERR_InterfacesCantContainFields, "Q1").WithLocation(3, 12), 974Diagnostic(ErrorCode.ERR_InterfacesCantContainFields, "Q2").WithLocation(4, 12), 983Diagnostic(ErrorCode.ERR_InterfacesCantContainFields, "Q3").WithLocation(5, 12), 989Diagnostic(ErrorCode.ERR_InterfacesCantContainFields, "Q4").WithLocation(6, 12)); 996Diagnostic(ErrorCode.ERR_InterfacesCantContainFields, "Q1").WithLocation(3, 12), 999Diagnostic(ErrorCode.ERR_InterfacesCantContainFields, "Q2").WithLocation(4, 12), 1002Diagnostic(ErrorCode.ERR_InterfacesCantContainFields, "Q3").WithLocation(5, 12), 1008Diagnostic(ErrorCode.ERR_InterfacesCantContainFields, "Q4").WithLocation(6, 12), 2208Diagnostic(ErrorCode.ERR_InterfacesCantContainFields, "P2").WithLocation(4, 16), 2211Diagnostic(ErrorCode.ERR_InterfacesCantContainFields, "P3").WithLocation(5, 16), 2214Diagnostic(ErrorCode.ERR_InterfacesCantContainFields, "P4").WithLocation(6, 16), 2220Diagnostic(ErrorCode.ERR_InterfacesCantContainFields, "P5").WithLocation(7, 16), 2226Diagnostic(ErrorCode.ERR_InterfacesCantContainFields, "P7").WithLocation(9, 16), 2232Diagnostic(ErrorCode.ERR_InterfacesCantContainFields, "P8").WithLocation(10, 16), 2235Diagnostic(ErrorCode.ERR_InterfacesCantContainFields, "P9").WithLocation(11, 16)); 8253Diagnostic(ErrorCode.ERR_InterfacesCantContainFields, "Q2").WithLocation(10, 7), 8259Diagnostic(ErrorCode.ERR_InterfacesCantContainFields, "Q3").WithLocation(11, 7)); 8592Diagnostic(ErrorCode.ERR_InterfacesCantContainFields, "P1").WithLocation(3, 20), 8598Diagnostic(ErrorCode.ERR_InterfacesCantContainFields, "P2").WithLocation(4, 20)); 8605Diagnostic(ErrorCode.ERR_InterfacesCantContainFields, "P1").WithLocation(3, 20), 8611Diagnostic(ErrorCode.ERR_InterfacesCantContainFields, "P2").WithLocation(4, 20), 8728Diagnostic(ErrorCode.ERR_InterfacesCantContainFields, "P1").WithLocation(3, 27), 8731Diagnostic(ErrorCode.ERR_InterfacesCantContainFields, "P2").WithLocation(4, 27));
Semantics\InlineArrayTests.cs (1)
967Diagnostic(ErrorCode.ERR_InterfacesCantContainFields, "_element0").WithLocation(5, 17)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
Semantics\RefFieldTests.cs (1)
20917Diagnostic(ErrorCode.ERR_InterfacesCantContainFields, "field").WithLocation(12, 20),
Semantics\UninitializedNonNullableFieldTests.cs (1)
1986Diagnostic(ErrorCode.ERR_InterfacesCantContainFields, "F1").WithLocation(4, 19),
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (19)
Symbols\DefaultInterfaceImplementationTests.cs (14)
3390Diagnostic(ErrorCode.ERR_InterfacesCantContainFields, "P1").WithLocation(4, 9)); 3398Diagnostic(ErrorCode.ERR_InterfacesCantContainFields, "P1").WithLocation(4, 9), 3549Diagnostic(ErrorCode.ERR_InterfacesCantContainFields, "P1").WithLocation(4, 9)); 3557Diagnostic(ErrorCode.ERR_InterfacesCantContainFields, "P1").WithLocation(4, 9), 8103Diagnostic(ErrorCode.ERR_InterfacesCantContainFields, "F1").WithLocation(4, 16), 8106Diagnostic(ErrorCode.ERR_InterfacesCantContainFields, "F2").WithLocation(39, 16) 8381Diagnostic(ErrorCode.ERR_InterfacesCantContainFields, "F1").WithLocation(4, 16), 8384Diagnostic(ErrorCode.ERR_InterfacesCantContainFields, "F2").WithLocation(39, 16) 12911Diagnostic(ErrorCode.ERR_InterfacesCantContainFields, "F1").WithLocation(4, 16) 12966Diagnostic(ErrorCode.ERR_InterfacesCantContainFields, "F1").WithLocation(4, 16), 43714Diagnostic(ErrorCode.ERR_InterfacesCantContainFields, "F1").WithLocation(4, 9), 43726Diagnostic(ErrorCode.ERR_InterfacesCantContainFields, "F5").WithLocation(8, 9) 43738Diagnostic(ErrorCode.ERR_InterfacesCantContainFields, "F1").WithLocation(4, 9), 43741Diagnostic(ErrorCode.ERR_InterfacesCantContainFields, "F5").WithLocation(8, 9)
Symbols\RequiredMembersTests.cs (1)
182Diagnostic(ErrorCode.ERR_InterfacesCantContainFields, "Field").WithLocation(21, 18),
Symbols\StaticAbstractMembersInInterfacesTests.cs (2)
4863Diagnostic(ErrorCode.ERR_InterfacesCantContainFields, "F3").WithLocation(6, 18), 4869Diagnostic(ErrorCode.ERR_InterfacesCantContainFields, "F4").WithLocation(7, 16),
Symbols\SymbolErrorTests.cs (2)
9249Diagnostic(ErrorCode.ERR_InterfacesCantContainFields, "field1").WithLocation(5, 16), 9255Diagnostic(ErrorCode.ERR_InterfacesCantContainFields, "field3").WithLocation(7, 21)