51 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)
1064
or ErrorCode.
ERR_SpecialTypeAsBound
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (3)
RefStructInterfacesTests.cs (1)
5035
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "System.ValueType").WithArguments("System.ValueType").WithLocation(3, 15)
Semantics\ExtensionTests2.cs (2)
24451
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "System.ValueType").WithArguments("System.ValueType").WithLocation(3, 31));
30847
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "System.Object").WithArguments("object").WithLocation(3, 33));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (42)
Semantics\LocalFunctionTests.cs (1)
1600
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "object").WithArguments("object").WithLocation(4, 48)
Semantics\NullableReferenceTypesTests.cs (41)
100484
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "object?").WithArguments("object").WithLocation(4, 50),
100490
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "System.Object?").WithArguments("object").WithLocation(8, 50)
101102
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "object?").WithArguments("object").WithLocation(4, 50)
103555
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "object?").WithArguments("object").WithLocation(7, 39),
103581
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "object?").WithArguments("object").WithLocation(7, 39),
103608
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "object?").WithArguments("object").WithLocation(7, 44),
103642
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "object?").WithArguments("object").WithLocation(7, 39)
103665
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "object?").WithArguments("object").WithLocation(7, 39)
103689
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "object?").WithArguments("object").WithLocation(7, 44)
103722
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "object?").WithArguments("object").WithLocation(8, 39)
103746
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "object?").WithArguments("object").WithLocation(8, 39)
103771
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "object?").WithArguments("object").WithLocation(8, 44)
103804
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "object?").WithArguments("object").WithLocation(8, 39),
103831
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "object?").WithArguments("object").WithLocation(8, 39),
103859
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "object?").WithArguments("object").WithLocation(8, 44),
103893
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "object?").WithArguments("object").WithLocation(3, 39),
103919
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "object?").WithArguments("object").WithLocation(3, 39),
103946
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "object?").WithArguments("object").WithLocation(3, 44),
103980
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "object?").WithArguments("object").WithLocation(3, 39)
104003
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "object?").WithArguments("object").WithLocation(3, 39)
104027
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "object?").WithArguments("object").WithLocation(3, 44)
104060
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "object?").WithArguments("object").WithLocation(3, 39),
104087
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "object?").WithArguments("object").WithLocation(3, 39),
104115
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "object?").WithArguments("object").WithLocation(3, 44),
104152
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "object?").WithArguments("object").WithLocation(3, 39)
104177
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "object?").WithArguments("object").WithLocation(3, 39)
104203
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "object?").WithArguments("object").WithLocation(3, 44)
104478
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "object?").WithArguments("object").WithLocation(7, 36),
104510
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "object?").WithArguments("object").WithLocation(7, 36)
104536
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "object?").WithArguments("object").WithLocation(8, 36)
104565
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "object?").WithArguments("object").WithLocation(8, 36),
104794
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "object?").WithArguments("object").WithLocation(9, 36),
104825
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "object?").WithArguments("object").WithLocation(9, 36)
104851
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "object?").WithArguments("object").WithLocation(10, 36)
104880
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "object?").WithArguments("object").WithLocation(10, 36),
105983
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "object").WithArguments("object").WithLocation(4, 44),
105986
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "System.Object").WithArguments("object").WithLocation(8, 44)
106012
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "object?").WithArguments("object").WithLocation(4, 44),
106015
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "System.Object?").WithArguments("object").WithLocation(8, 44)
106023
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "object?").WithArguments("object").WithLocation(4, 44),
106029
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "System.Object?").WithArguments("object").WithLocation(8, 44),
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (4)
Symbols\SymbolErrorTests.cs (4)
12973
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "object").WithArguments("object").WithLocation(2, 27),
12976
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "System.Object").WithArguments("object").WithLocation(3, 27),
12978
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "ValueType").WithArguments("System.ValueType").WithLocation(4, 30),
12980
Diagnostic(ErrorCode.
ERR_SpecialTypeAsBound
, "Array").WithArguments("System.Array").WithLocation(5, 27));