4 references to ERR_GenericConstraintNotSatisfiedNullableEnum
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
856or ErrorCode.ERR_GenericConstraintNotSatisfiedNullableEnum
Symbols\ConstraintsHelper.cs (1)
1197errorCode = constraintType.Type.IsInterfaceType() ? ErrorCode.ERR_GenericConstraintNotSatisfiedNullableInterface : ErrorCode.ERR_GenericConstraintNotSatisfiedNullableEnum;
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
Semantics\SemanticErrorTests.cs (2)
10298Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedNullableEnum, "int?").WithArguments("A<T, U>", "int", "T", "int?").WithLocation(7, 26), 10301Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedNullableEnum, "M<int?>").WithArguments("B<int>.M<U>()", "int", "U", "int?").WithLocation(8, 16));