1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-09 03:52:19 +02:00

GetUnspecializedMethodInstance fix

This commit is contained in:
Brian Fiete 2021-01-02 05:05:10 -08:00
parent 08f8ccd4d8
commit ca8b1a7959

View file

@ -9746,8 +9746,9 @@ BfMethodInstance* BfModule::GetUnspecializedMethodInstance(BfMethodInstance* met
if (!owner->IsGenericTypeInstance())
return methodInstance;
BF_ASSERT(!owner->IsDelegateFromTypeRef());
BF_ASSERT(!owner->IsTuple());
if ((owner->IsDelegateFromTypeRef()) ||
(owner->IsTuple()))
return methodInstance;
auto genericType = (BfTypeInstance*)owner;
if ((genericType->IsUnspecializedType()) && (!genericType->IsUnspecializedTypeVariation()))