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

Extension method this cast check fix

This commit is contained in:
Brian Fiete 2021-01-22 14:26:11 -08:00
parent 0b23446aa8
commit dae208a28b

View file

@ -2225,7 +2225,7 @@ NoMatch:
auto resolveThisParam = mModule->ResolveGenericType(thisParam, NULL, &mCheckMethodGenericArguments);
if (resolveThisParam == NULL)
return false;
if (!mModule->CanCast(mTarget, resolveThisParam))
if (!mModule->CanCast(mTarget, resolveThisParam, BfCastFlags_Explicit))
return false;
}