9 references to ERR_UnsafeTypeInObjectCreation
Microsoft.CodeAnalysis.CSharp (3)
Binder\Binder_Conversions.cs (1)
397
Error(diagnostics, ErrorCode.
ERR_UnsafeTypeInObjectCreation
, syntax, type);
Binder\Binder_Expressions.cs (1)
4464
diagnostics.Add(ErrorCode.
ERR_UnsafeTypeInObjectCreation
, node.Location, type));
Errors\ErrorFacts.cs (1)
1358
case ErrorCode.
ERR_UnsafeTypeInObjectCreation
:
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (6)
Semantics\FunctionPointerTests.cs (2)
3699
Diagnostic(ErrorCode.
ERR_UnsafeTypeInObjectCreation
, "new delegate*<void>()").WithArguments("delegate*<void>").WithLocation(6, 23)
4075
Diagnostic(ErrorCode.
ERR_UnsafeTypeInObjectCreation
, "new()").WithArguments("delegate*<void>").WithLocation(11, 31)
Semantics\ImplicitObjectCreationTests.cs (2)
784
Diagnostic(ErrorCode.
ERR_UnsafeTypeInObjectCreation
, "new()").WithArguments("int*").WithLocation(6, 19),
787
Diagnostic(ErrorCode.
ERR_UnsafeTypeInObjectCreation
, "new()").WithArguments("int*").WithLocation(7, 24)
Semantics\SemanticErrorTests.cs (2)
16900
Diagnostic(ErrorCode.
ERR_UnsafeTypeInObjectCreation
, "new int*()").WithArguments("int*"),
16902
Diagnostic(ErrorCode.
ERR_UnsafeTypeInObjectCreation
, "new char*()").WithArguments("char*"));