9 references to ERR_UnsafeTypeInObjectCreation
Microsoft.CodeAnalysis.CSharp (3)
Binder\Binder_Conversions.cs (1)
797
Error(diagnostics, ErrorCode.
ERR_UnsafeTypeInObjectCreation
, syntax, type);
Binder\Binder_Expressions.cs (1)
5228
diagnostics.Add(ErrorCode.
ERR_UnsafeTypeInObjectCreation
, node.Location, type));
Errors\ErrorFacts.cs (1)
1419
or ErrorCode.
ERR_UnsafeTypeInObjectCreation
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (6)
Semantics\FunctionPointerTests.cs (2)
3720
Diagnostic(ErrorCode.
ERR_UnsafeTypeInObjectCreation
, "new delegate*<void>()").WithArguments("delegate*<void>").WithLocation(6, 23)
4096
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)
17008
Diagnostic(ErrorCode.
ERR_UnsafeTypeInObjectCreation
, "new int*()").WithArguments("int*"),
17010
Diagnostic(ErrorCode.
ERR_UnsafeTypeInObjectCreation
, "new char*()").WithArguments("char*"));