mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 04:22:20 +02:00
Allow 'concrete' to still allow a returned interface instance
This commit is contained in:
parent
adf495d171
commit
e93757141d
1 changed files with 3 additions and 5 deletions
|
@ -4136,12 +4136,10 @@ void BfModule::DoTypeInstanceMethodProcessing(BfTypeInstance* typeInstance)
|
||||||
if (matchedMethod->mReturnType != iReturnType)
|
if (matchedMethod->mReturnType != iReturnType)
|
||||||
hadMatch = false;
|
hadMatch = false;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Concrete
|
// Concrete/generic
|
||||||
if (matchedMethod->mReturnType->IsInterface())
|
if (!CanCast(GetFakeTypedValue(matchedMethod->mReturnType), iReturnType))
|
||||||
hadMatch = false;
|
|
||||||
else if (!CanCast(GetFakeTypedValue(matchedMethod->mReturnType), iReturnType))
|
|
||||||
hadMatch = false;
|
hadMatch = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue