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)
2057
case ErrorCode.
ERR_CannotClone
:
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (21)
Semantics\DelegateTypeTests.cs (2)
11165
Diagnostic(ErrorCode.
ERR_CannotClone
, "d1").WithArguments("System.Func<int, int>").WithLocation(6, 14),
11168
Diagnostic(ErrorCode.
ERR_CannotClone
, "d2").WithArguments("<anonymous delegate>").WithLocation(8, 14));
Semantics\RecordStructTests.cs (2)
7823
Diagnostic(ErrorCode.
ERR_CannotClone
, "i").WithArguments("int*").WithLocation(6, 16)
7846
Diagnostic(ErrorCode.
ERR_CannotClone
, "i").WithArguments("I").WithLocation(10, 16)
Semantics\RecordTests.cs (17)
2187
Diagnostic(ErrorCode.
ERR_CannotClone
, "b").WithArguments("B").WithLocation(12, 13)
2213
Diagnostic(ErrorCode.
ERR_CannotClone
, "b").WithArguments("B").WithLocation(12, 13)
2238
Diagnostic(ErrorCode.
ERR_CannotClone
, "b").WithArguments("B").WithLocation(12, 13)
2333
Diagnostic(ErrorCode.
ERR_CannotClone
, "b").WithArguments("B").WithLocation(12, 13),
2356
Diagnostic(ErrorCode.
ERR_CannotClone
, "c").WithArguments("dynamic").WithLocation(7, 17)
2550
Diagnostic(ErrorCode.
ERR_CannotClone
, "t").WithArguments("T").WithLocation(6, 13),
2574
Diagnostic(ErrorCode.
ERR_CannotClone
, "t").WithArguments("T").WithLocation(8, 13),
2627
Diagnostic(ErrorCode.
ERR_CannotClone
, "t").WithArguments("T").WithLocation(6, 13),
3745
Diagnostic(ErrorCode.
ERR_CannotClone
, "new A()").WithArguments("A").WithLocation(6, 15)
3971
Diagnostic(ErrorCode.
ERR_CannotClone
, "new A()").WithArguments("A").WithLocation(6, 15)
4196
Diagnostic(ErrorCode.
ERR_CannotClone
, "new A()").WithArguments("A").WithLocation(6, 15)
4304
Diagnostic(ErrorCode.
ERR_CannotClone
, "c1").WithArguments("C").WithLocation(7, 18),
4320
Diagnostic(ErrorCode.
ERR_CannotClone
, "c1").WithArguments("C").WithLocation(7, 18),
7992
Diagnostic(ErrorCode.
ERR_CannotClone
, "c").WithArguments("C").WithLocation(8, 13),
8511
Diagnostic(ErrorCode.
ERR_CannotClone
, "c").WithArguments("C").WithLocation(9, 13),
8514
Diagnostic(ErrorCode.
ERR_CannotClone
, "c").WithArguments("C").WithLocation(10, 13)
8822
Diagnostic(ErrorCode.
ERR_CannotClone
, "r").WithArguments("R").WithLocation(11, 13));