50 references to ERR_SpecialTypeAsBound
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Constraints.cs (1)
579
Error(diagnostics, ErrorCode.
ERR_SpecialTypeAsBound
, syntax, type);
Errors\ErrorFacts.cs (1)
1052
or ErrorCode.
ERR_SpecialTypeAsBound
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (2)
RefStructInterfacesTests.cs (1)
5035
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "System.ValueType").WithArguments("System.ValueType").WithLocation(3, 15)
Semantics\ExtensionTests2.cs (1)
6171
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "System.ValueType").WithArguments("System.ValueType").WithLocation(3, 31));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (42)
Semantics\LocalFunctionTests.cs (1)
1606
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "object").WithArguments("object").WithLocation(4, 48)
Semantics\NullableReferenceTypesTests.cs (41)
100412
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "object?").WithArguments("object").WithLocation(4, 50),
100418
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "System.Object?").WithArguments("object").WithLocation(8, 50)
101030
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "object?").WithArguments("object").WithLocation(4, 50)
103483
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "object?").WithArguments("object").WithLocation(7, 39),
103509
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "object?").WithArguments("object").WithLocation(7, 39),
103536
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "object?").WithArguments("object").WithLocation(7, 44),
103570
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "object?").WithArguments("object").WithLocation(7, 39)
103593
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "object?").WithArguments("object").WithLocation(7, 39)
103617
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "object?").WithArguments("object").WithLocation(7, 44)
103650
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "object?").WithArguments("object").WithLocation(8, 39)
103674
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "object?").WithArguments("object").WithLocation(8, 39)
103699
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "object?").WithArguments("object").WithLocation(8, 44)
103732
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "object?").WithArguments("object").WithLocation(8, 39),
103759
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "object?").WithArguments("object").WithLocation(8, 39),
103787
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "object?").WithArguments("object").WithLocation(8, 44),
103821
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "object?").WithArguments("object").WithLocation(3, 39),
103847
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "object?").WithArguments("object").WithLocation(3, 39),
103874
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "object?").WithArguments("object").WithLocation(3, 44),
103908
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "object?").WithArguments("object").WithLocation(3, 39)
103931
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "object?").WithArguments("object").WithLocation(3, 39)
103955
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "object?").WithArguments("object").WithLocation(3, 44)
103988
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "object?").WithArguments("object").WithLocation(3, 39),
104015
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "object?").WithArguments("object").WithLocation(3, 39),
104043
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "object?").WithArguments("object").WithLocation(3, 44),
104080
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "object?").WithArguments("object").WithLocation(3, 39)
104105
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "object?").WithArguments("object").WithLocation(3, 39)
104131
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "object?").WithArguments("object").WithLocation(3, 44)
104406
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "object?").WithArguments("object").WithLocation(7, 36),
104438
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "object?").WithArguments("object").WithLocation(7, 36)
104464
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "object?").WithArguments("object").WithLocation(8, 36)
104493
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "object?").WithArguments("object").WithLocation(8, 36),
104722
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "object?").WithArguments("object").WithLocation(9, 36),
104753
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "object?").WithArguments("object").WithLocation(9, 36)
104779
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "object?").WithArguments("object").WithLocation(10, 36)
104808
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "object?").WithArguments("object").WithLocation(10, 36),
105911
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "object").WithArguments("object").WithLocation(4, 44),
105914
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "System.Object").WithArguments("object").WithLocation(8, 44)
105940
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "object?").WithArguments("object").WithLocation(4, 44),
105943
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "System.Object?").WithArguments("object").WithLocation(8, 44)
105951
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "object?").WithArguments("object").WithLocation(4, 44),
105957
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "System.Object?").WithArguments("object").WithLocation(8, 44),
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (4)
Symbols\SymbolErrorTests.cs (4)
12962
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "object").WithArguments("object").WithLocation(2, 27),
12965
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "System.Object").WithArguments("object").WithLocation(3, 27),
12967
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "ValueType").WithArguments("System.ValueType").WithLocation(4, 30),
12969
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "Array").WithArguments("System.Array").WithLocation(5, 27));