20 references to ERR_TypeVarCantBeNull
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Statements.cs (1)
2387Error(diagnostics, ErrorCode.ERR_TypeVarCantBeNull, syntax, targetType);
Errors\ErrorFacts.cs (1)
863or ErrorCode.ERR_TypeVarCantBeNull
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (1)
IOperation\IOperationTests_IConversionExpression.cs (1)
2164Diagnostic(ErrorCode.ERR_TypeVarCantBeNull, "null").WithArguments("T").WithLocation(11, 25)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (12)
Semantics\NullableReferenceTypesTests.cs (2)
3832Diagnostic(ErrorCode.ERR_TypeVarCantBeNull, "null").WithArguments("T").WithLocation(12, 15), 9702Diagnostic(ErrorCode.ERR_TypeVarCantBeNull, "null").WithArguments("T").WithLocation(2, 55)
Semantics\SemanticErrorTests.cs (10)
10466Diagnostic(ErrorCode.ERR_TypeVarCantBeNull, "null").WithArguments("T1"), 10469Diagnostic(ErrorCode.ERR_TypeVarCantBeNull, "null").WithArguments("T3"), 10472Diagnostic(ErrorCode.ERR_TypeVarCantBeNull, "null").WithArguments("T4"), 10475Diagnostic(ErrorCode.ERR_TypeVarCantBeNull, "null").WithArguments("T5"), 10478Diagnostic(ErrorCode.ERR_TypeVarCantBeNull, "null").WithArguments("T7"), 10487Diagnostic(ErrorCode.ERR_TypeVarCantBeNull, "null").WithArguments("T1"), 10490Diagnostic(ErrorCode.ERR_TypeVarCantBeNull, "null").WithArguments("T3"), 10493Diagnostic(ErrorCode.ERR_TypeVarCantBeNull, "null").WithArguments("T4"), 10496Diagnostic(ErrorCode.ERR_TypeVarCantBeNull, "null").WithArguments("T5"), 10499Diagnostic(ErrorCode.ERR_TypeVarCantBeNull, "null").WithArguments("T7")
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (5)
Symbols\GenericConstraintConversionTests.cs (4)
289Diagnostic(ErrorCode.ERR_TypeVarCantBeNull, "null").WithArguments("T1"), 292Diagnostic(ErrorCode.ERR_TypeVarCantBeNull, "null").WithArguments("T3"), 295Diagnostic(ErrorCode.ERR_TypeVarCantBeNull, "null").WithArguments("T4"), 298Diagnostic(ErrorCode.ERR_TypeVarCantBeNull, "null").WithArguments("T5"),
Symbols\GenericConstraintTests.cs (1)
5702Diagnostic(ErrorCode.ERR_TypeVarCantBeNull, "null").WithArguments("T").WithLocation(6, 16));