1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 20:42:21 +02:00

Added IEnumerable<T> to sized arrays

This commit is contained in:
Brian Fiete 2021-01-20 15:00:13 -08:00
parent 7787efda7e
commit 458eb90752
2 changed files with 65 additions and 1 deletions

View file

@ -603,6 +603,9 @@ bool BfGenericInferContext::InferGenericArguments(BfMethodInstance* methodInstan
{
InferGenericArgument(methodInstance, srcGenericArg, ifaceConstraint, BfIRValue());
auto typeInstance = srcGenericArg->ToTypeInstance();
if (typeInstance == NULL)
typeInstance = mModule->GetWrappedStructType(srcGenericArg);
if (typeInstance != NULL)
{
for (auto ifaceEntry : typeInstance->mInterfaces)