21 references to ERR_BadBoundType
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Constraints.cs (1)
614
Error(diagnostics, ErrorCode.
ERR_BadBoundType
, syntax, type);
Errors\ErrorFacts.cs (1)
1051
or ErrorCode.
ERR_BadBoundType
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (8)
Semantics\NullableReferenceTypesTests.cs (6)
105685
Diagnostic(ErrorCode.
ERR_BadBoundType
, "notnull?").WithArguments("notnull?").WithLocation(5, 31)
110681
Diagnostic(ErrorCode.
ERR_BadBoundType
, "T?").WithArguments("T?").WithLocation(4, 30),
110830
Diagnostic(ErrorCode.
ERR_BadBoundType
, "T?").WithArguments("T?").WithLocation(6, 43),
110839
Diagnostic(ErrorCode.
ERR_BadBoundType
, "T?").WithArguments("T?").WithLocation(10, 55),
110880
Diagnostic(ErrorCode.
ERR_BadBoundType
, "T?").WithArguments("T?").WithLocation(9, 40),
110889
Diagnostic(ErrorCode.
ERR_BadBoundType
, "T?").WithArguments("T?").WithLocation(13, 52));
Semantics\SpanStackSafetyTests.cs (1)
446
Diagnostic(ErrorCode.
ERR_BadBoundType
, "Span<int>").WithArguments("System.Span<int>").WithLocation(13, 26),
Semantics\UnsafeTests.cs (1)
6124
Diagnostic(ErrorCode.
ERR_BadBoundType
, "System.TypedReference").WithArguments("System.TypedReference").WithLocation(2, 29)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (11)
Symbols\GenericConstraintTests.cs (5)
2156
Diagnostic(ErrorCode.
ERR_BadBoundType
, "B").WithArguments("B").WithLocation(10, 30),
2159
Diagnostic(ErrorCode.
ERR_BadBoundType
, "B").WithArguments("B").WithLocation(11, 33));
2178
Diagnostic(ErrorCode.
ERR_BadBoundType
, "A").WithArguments("A").WithLocation(2, 33),
2181
Diagnostic(ErrorCode.
ERR_BadBoundType
, "A").WithArguments("A").WithLocation(3, 33),
2184
Diagnostic(ErrorCode.
ERR_BadBoundType
, "A").WithArguments("A").WithLocation(5, 33));
Symbols\Retargeting\RetargetingTests.cs (1)
607
Diagnostic(ErrorCode.
ERR_BadBoundType
, "int").WithArguments("int"));
Symbols\SymbolErrorTests.cs (5)
12939
Diagnostic(ErrorCode.
ERR_BadBoundType
, "string").WithArguments("string").WithLocation(7, 28),
12941
Diagnostic(ErrorCode.
ERR_BadBoundType
, "D").WithArguments("D").WithLocation(8, 28),
12943
Diagnostic(ErrorCode.
ERR_BadBoundType
, "E").WithArguments("E").WithLocation(9, 28),
12945
Diagnostic(ErrorCode.
ERR_BadBoundType
, "S").WithArguments("S").WithLocation(10, 28),
12947
Diagnostic(ErrorCode.
ERR_BadBoundType
, "A<T>").WithArguments("A<T>").WithLocation(11, 28));