20 references to ERR_TypeVarCantBeNull
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Statements.cs (1)
2335Error(diagnostics, ErrorCode.ERR_TypeVarCantBeNull, syntax, targetType);
Errors\ErrorFacts.cs (1)
801case ErrorCode.ERR_TypeVarCantBeNull:
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (1)
IOperation\IOperationTests_IConversionExpression.cs (1)
2163Diagnostic(ErrorCode.ERR_TypeVarCantBeNull, "null").WithArguments("T").WithLocation(11, 25)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (12)
Semantics\NullableReferenceTypesTests.cs (2)
3820Diagnostic(ErrorCode.ERR_TypeVarCantBeNull, "null").WithArguments("T").WithLocation(12, 15), 9690Diagnostic(ErrorCode.ERR_TypeVarCantBeNull, "null").WithArguments("T").WithLocation(2, 55)
Semantics\SemanticErrorTests.cs (10)
10462Diagnostic(ErrorCode.ERR_TypeVarCantBeNull, "null").WithArguments("T1"), 10465Diagnostic(ErrorCode.ERR_TypeVarCantBeNull, "null").WithArguments("T3"), 10468Diagnostic(ErrorCode.ERR_TypeVarCantBeNull, "null").WithArguments("T4"), 10471Diagnostic(ErrorCode.ERR_TypeVarCantBeNull, "null").WithArguments("T5"), 10474Diagnostic(ErrorCode.ERR_TypeVarCantBeNull, "null").WithArguments("T7"), 10483Diagnostic(ErrorCode.ERR_TypeVarCantBeNull, "null").WithArguments("T1"), 10486Diagnostic(ErrorCode.ERR_TypeVarCantBeNull, "null").WithArguments("T3"), 10489Diagnostic(ErrorCode.ERR_TypeVarCantBeNull, "null").WithArguments("T4"), 10492Diagnostic(ErrorCode.ERR_TypeVarCantBeNull, "null").WithArguments("T5"), 10495Diagnostic(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)
5675Diagnostic(ErrorCode.ERR_TypeVarCantBeNull, "null").WithArguments("T").WithLocation(6, 16));