8 references to ERR_StructLayoutCyclePrimaryConstructorParameter
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
2358
or ErrorCode.
ERR_StructLayoutCyclePrimaryConstructorParameter
Symbols\Source\SourceMemberContainerSymbol.cs (1)
2678
diagnostics.Add(ErrorCode.
ERR_StructLayoutCyclePrimaryConstructorParameter
, parameterSymbol.GetFirstLocation(), parameterSymbol, type);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (6)
Semantics\PrimaryConstructorTests.cs (6)
14455
Diagnostic(ErrorCode.
ERR_StructLayoutCyclePrimaryConstructorParameter
, "x").WithArguments("S1 x", "S1").WithLocation(2, 14)
14479
Diagnostic(ErrorCode.
ERR_StructLayoutCyclePrimaryConstructorParameter
, "x").WithArguments("S2 x", "S2").WithLocation(2, 14),
14482
Diagnostic(ErrorCode.
ERR_StructLayoutCyclePrimaryConstructorParameter
, "x").WithArguments("S1 x", "S1").WithLocation(7, 14)
14500
Diagnostic(ErrorCode.
ERR_StructLayoutCyclePrimaryConstructorParameter
, "x").WithArguments("S1<S1<int>> x", "S1<S1<int>>").WithLocation(2, 26)
14526
Diagnostic(ErrorCode.
ERR_StructLayoutCyclePrimaryConstructorParameter
, "x").WithArguments("S1<S2> x", "S1<S2>").WithLocation(7, 18)
14534
Diagnostic(ErrorCode.
ERR_StructLayoutCyclePrimaryConstructorParameter
, "x").WithArguments("S1<S2> x", "S1<S2>").WithLocation(2, 18)