mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-12 05:14:10 +02:00
Fixed 'Function' constraint
This commit is contained in:
parent
2beb2231ac
commit
19fcb7f890
1 changed files with 2 additions and 0 deletions
|
@ -8582,6 +8582,8 @@ bool BfModule::CheckGenericConstraints(const BfGenericParamSource& genericParamS
|
||||||
}
|
}
|
||||||
else if (convCheckConstraint->IsInstanceOf(mCompiler->mDelegateTypeDef))
|
else if (convCheckConstraint->IsInstanceOf(mCompiler->mDelegateTypeDef))
|
||||||
constraintMatched = true;
|
constraintMatched = true;
|
||||||
|
else if ((checkArgType->IsFunction()) && (convCheckConstraint->IsInstanceOf(mCompiler->mFunctionTypeDef)))
|
||||||
|
constraintMatched = true;
|
||||||
}
|
}
|
||||||
else if (CanCast(GetFakeTypedValue(checkArgType), convCheckConstraint))
|
else if (CanCast(GetFakeTypedValue(checkArgType), convCheckConstraint))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue