8 references to ERR_ValueTypePropertyInObjectInitializer
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Expressions.cs (1)
5130Error(diagnostics, ErrorCode.ERR_ValueTypePropertyInObjectInitializer, memberNameSyntax, propertySymbol, propertySymbol.Type);
Errors\ErrorFacts.cs (1)
1357case ErrorCode.ERR_ValueTypePropertyInObjectInitializer:
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
BreakingChanges.cs (1)
1657Diagnostic(ErrorCode.ERR_ValueTypePropertyInObjectInitializer, "Item").WithArguments("Wrapper<T>.Item", "T"));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (4)
Semantics\ObjectAndCollectionInitializerTests.cs (4)
1992Diagnostic(ErrorCode.ERR_ValueTypePropertyInObjectInitializer, "Prop").WithArguments("MemberInitializerTest.Prop", "MemberInitializerTest2").WithLocation(9, 64) 2994Diagnostic(ErrorCode.ERR_ValueTypePropertyInObjectInitializer, "Count").WithArguments("System.Collections.Generic.List<int>.Count", "int").WithLocation(8, 43) 3077Diagnostic(ErrorCode.ERR_ValueTypePropertyInObjectInitializer, "StructProp").WithArguments("N.C.StructProp", "N.Struct").WithLocation(20, 17), 3420Diagnostic(ErrorCode.ERR_ValueTypePropertyInObjectInitializer, "A").WithArguments("B.A", "A").WithLocation(47, 31)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Symbols\IndexedPropertyTests.cs (1)
2062Diagnostic(ErrorCode.ERR_ValueTypePropertyInObjectInitializer, "P2").WithArguments("A.P2[int]", "S").WithLocation(7, 23),