mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 11:38:21 +02:00
Throw an error when attempting to constrain to multiple primitive types
This commit is contained in:
parent
5b18e380a5
commit
6fcecfdb78
1 changed files with 2 additions and 0 deletions
|
@ -8653,6 +8653,8 @@ void BfModule::ResolveGenericParamConstraints(BfGenericParamInstance* genericPar
|
||||||
|
|
||||||
if (checkEquality)
|
if (checkEquality)
|
||||||
{
|
{
|
||||||
|
if (genericParamInstance->mTypeConstraint != NULL)
|
||||||
|
Fail("Only one concrete type constraint may be specified", constraintTypeRef);
|
||||||
genericParamInstance->mTypeConstraint = constraintType;
|
genericParamInstance->mTypeConstraint = constraintType;
|
||||||
}
|
}
|
||||||
else if (constraintType->IsInterface())
|
else if (constraintType->IsInterface())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue