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