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