8 references to ERR_MemberCannotBeInitialized
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Expressions.cs (1)
5173Error(diagnostics, ErrorCode.ERR_MemberCannotBeInitialized, memberNameSyntax, member);
Errors\ErrorFacts.cs (1)
1354case ErrorCode.ERR_MemberCannotBeInitialized:
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (6)
Semantics\DeconstructionTests.cs (1)
674Diagnostic(ErrorCode.ERR_MemberCannotBeInitialized, "Deconstruct").WithArguments("Deconstruct").WithLocation(11, 38),
Semantics\ObjectAndCollectionInitializerTests.cs (1)
1795Diagnostic(ErrorCode.ERR_MemberCannotBeInitialized, "Goo").WithArguments("Goo").WithLocation(7, 57)
Semantics\RecordStructTests.cs (1)
9611Diagnostic(ErrorCode.ERR_MemberCannotBeInitialized, "ToString").WithArguments("ToString").WithLocation(7, 26)
Semantics\RecordTests.cs (2)
2288Diagnostic(ErrorCode.ERR_MemberCannotBeInitialized, "X").WithArguments("X").WithLocation(11, 22) 8488Diagnostic(ErrorCode.ERR_MemberCannotBeInitialized, "X").WithArguments("X").WithLocation(9, 22)
Semantics\RefFieldTests.cs (1)
20587Diagnostic(ErrorCode.ERR_MemberCannotBeInitialized, "F").WithArguments("F").WithLocation(3, 17),