30 references to ERR_NoNewAbstract
Microsoft.CodeAnalysis.CSharp (4)
Binder\Binder_Conversions.cs (1)
1123
diagnostics.Add(ErrorCode.
ERR_NoNewAbstract
, syntax.Location, namedType);
Binder\Binder_Expressions.cs (2)
6696
diagnostics.Add(ErrorCode.
ERR_NoNewAbstract
, node.Location, type);
6959
diagnostics.Add(ErrorCode.
ERR_NoNewAbstract
, node.Location, type);
Errors\ErrorFacts.cs (1)
733
or ErrorCode.
ERR_NoNewAbstract
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (14)
Attributes\AttributeTests_WellKnownAttributes.cs (9)
4149
Diagnostic(ErrorCode.
ERR_NoNewAbstract
, "new Wrapper.IWorksheet()").WithArguments("Wrapper.IWorksheet").WithLocation(20, 17));
4186
Diagnostic(ErrorCode.
ERR_NoNewAbstract
, "new Wrapper.IWorksheet()").WithArguments("Wrapper.IWorksheet").WithLocation(6, 17));
4199
Diagnostic(ErrorCode.
ERR_NoNewAbstract
, "new Wrapper.IWorksheet()").WithArguments("Wrapper.IWorksheet").WithLocation(6, 17));
4233
Diagnostic(ErrorCode.
ERR_NoNewAbstract
, "new IWorksheet()").WithArguments("IWorksheet").WithLocation(22, 17));
4271
Diagnostic(ErrorCode.
ERR_NoNewAbstract
, "new IWorksheet()").WithArguments("IWorksheet").WithLocation(6, 17));
4277
Diagnostic(ErrorCode.
ERR_NoNewAbstract
, "new IWorksheet()").WithArguments("IWorksheet").WithLocation(6, 17));
4314
Diagnostic(ErrorCode.
ERR_NoNewAbstract
, "new IWorksheet()").WithArguments("IWorksheet").WithLocation(22, 17));
4413
Diagnostic(ErrorCode.
ERR_NoNewAbstract
, "new IWorksheet()").WithArguments("IWorksheet").WithLocation(6, 17));
4529
Diagnostic(ErrorCode.
ERR_NoNewAbstract
, "new InterfaceType()").WithArguments("InterfaceType").WithLocation(16, 13));
Semantics\CollectionExpressionTests.cs (2)
6754
Diagnostic(ErrorCode.
ERR_NoNewAbstract
, "[]").WithArguments("A").WithLocation(14, 15));
29211
Diagnostic(ErrorCode.
ERR_NoNewAbstract
, "[]").WithArguments("AbstractCollection").WithLocation(17, 11));
Semantics\ParamsCollectionTests.cs (1)
8254
Diagnostic(ErrorCode.
ERR_NoNewAbstract
, "new Test(d)").WithArguments("Program.Test").WithLocation(8, 9),
Semantics\RecordTests.cs (2)
25821
Diagnostic(ErrorCode.
ERR_NoNewAbstract
, "new()").WithArguments("C").WithLocation(6, 16),
25824
Diagnostic(ErrorCode.
ERR_NoNewAbstract
, "new()").WithArguments("C").WithLocation(7, 21)
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (1)
IOperation\IOperationTests_IConversionExpression.cs (1)
1072
Diagnostic(ErrorCode.
ERR_NoNewAbstract
, "new I1()").WithArguments("I1").WithLocation(12, 27)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (11)
Semantics\ImplicitObjectCreationTests.cs (5)
549
Diagnostic(ErrorCode.
ERR_NoNewAbstract
, "new()").WithArguments("C").WithLocation(6, 16),
552
Diagnostic(ErrorCode.
ERR_NoNewAbstract
, "new()").WithArguments("C").WithLocation(7, 21)
574
Diagnostic(ErrorCode.
ERR_NoNewAbstract
, "new()").WithArguments("I").WithLocation(7, 16),
577
Diagnostic(ErrorCode.
ERR_NoNewAbstract
, "new()").WithArguments("I").WithLocation(8, 21)
2120
Diagnostic(ErrorCode.
ERR_NoNewAbstract
, "new()").WithArguments("System.IDisposable").WithLocation(14, 39)
Semantics\ObjectAndCollectionInitializerTests.cs (2)
1208
Diagnostic(ErrorCode.
ERR_NoNewAbstract
, "new I() { }").WithArguments("I").WithLocation(7, 27)
4051
Diagnostic(ErrorCode.
ERR_NoNewAbstract
, "new I() { 1, 2 }").WithArguments("I").WithLocation(8, 15),
Semantics\SemanticErrorTests.cs (4)
4234
new ErrorDescription { Code = (int)ErrorCode.
ERR_NoNewAbstract
, Line = 14, Column = 15 },
4235
new ErrorDescription { Code = (int)ErrorCode.
ERR_NoNewAbstract
, Line = 15, Column = 15 },
4236
new ErrorDescription { Code = (int)ErrorCode.
ERR_NoNewAbstract
, Line = 16, Column = 15 },
25131
Diagnostic(ErrorCode.
ERR_NoNewAbstract
, "new A()").WithArguments("A").WithLocation(8, 32));