23 references to ERR_CannotClone
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_WithExpression.cs (1)
46
diagnostics.Add(ErrorCode.
ERR_CannotClone
, syntax.Expression.Location, receiverType);
Errors\ErrorFacts.cs (1)
2114
or ErrorCode.
ERR_CannotClone
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (17)
Semantics\RecordTests.cs (17)
2242
Diagnostic(ErrorCode.
ERR_CannotClone
, "b").WithArguments("B").WithLocation(12, 13)
2268
Diagnostic(ErrorCode.
ERR_CannotClone
, "b").WithArguments("B").WithLocation(12, 13)
2293
Diagnostic(ErrorCode.
ERR_CannotClone
, "b").WithArguments("B").WithLocation(12, 13)
2388
Diagnostic(ErrorCode.
ERR_CannotClone
, "b").WithArguments("B").WithLocation(12, 13),
2411
Diagnostic(ErrorCode.
ERR_CannotClone
, "c").WithArguments("dynamic").WithLocation(7, 17)
2605
Diagnostic(ErrorCode.
ERR_CannotClone
, "t").WithArguments("T").WithLocation(6, 13),
2629
Diagnostic(ErrorCode.
ERR_CannotClone
, "t").WithArguments("T").WithLocation(8, 13),
2682
Diagnostic(ErrorCode.
ERR_CannotClone
, "t").WithArguments("T").WithLocation(6, 13),
3800
Diagnostic(ErrorCode.
ERR_CannotClone
, "new A()").WithArguments("A").WithLocation(6, 15)
4026
Diagnostic(ErrorCode.
ERR_CannotClone
, "new A()").WithArguments("A").WithLocation(6, 15)
4251
Diagnostic(ErrorCode.
ERR_CannotClone
, "new A()").WithArguments("A").WithLocation(6, 15)
4359
Diagnostic(ErrorCode.
ERR_CannotClone
, "c1").WithArguments("C").WithLocation(7, 18),
4375
Diagnostic(ErrorCode.
ERR_CannotClone
, "c1").WithArguments("C").WithLocation(7, 18),
8047
Diagnostic(ErrorCode.
ERR_CannotClone
, "c").WithArguments("C").WithLocation(8, 13),
8566
Diagnostic(ErrorCode.
ERR_CannotClone
, "c").WithArguments("C").WithLocation(9, 13),
8569
Diagnostic(ErrorCode.
ERR_CannotClone
, "c").WithArguments("C").WithLocation(10, 13)
8877
Diagnostic(ErrorCode.
ERR_CannotClone
, "r").WithArguments("R").WithLocation(11, 13));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (4)
Semantics\DelegateTypeTests.cs (2)
14601
Diagnostic(ErrorCode.
ERR_CannotClone
, "d1").WithArguments("System.Func<int, int>").WithLocation(6, 14),
14604
Diagnostic(ErrorCode.
ERR_CannotClone
, "d2").WithArguments("<anonymous delegate>").WithLocation(8, 14));
Semantics\RecordStructTests.cs (2)
7935
Diagnostic(ErrorCode.
ERR_CannotClone
, "i").WithArguments("int*").WithLocation(6, 16)
7958
Diagnostic(ErrorCode.
ERR_CannotClone
, "i").WithArguments("I").WithLocation(10, 16)