diff --git a/IDEHelper/Compiler/BfModule.cpp b/IDEHelper/Compiler/BfModule.cpp index 5f7a8eba..f76a1446 100644 --- a/IDEHelper/Compiler/BfModule.cpp +++ b/IDEHelper/Compiler/BfModule.cpp @@ -8653,6 +8653,8 @@ void BfModule::ResolveGenericParamConstraints(BfGenericParamInstance* genericPar if (checkEquality) { + if (genericParamInstance->mTypeConstraint != NULL) + Fail("Only one concrete type constraint may be specified", constraintTypeRef); genericParamInstance->mTypeConstraint = constraintType; } else if (constraintType->IsInterface())