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

Fixed erroneous global method lookup when type is specified

This commit is contained in:
Brian Fiete 2022-02-12 15:17:07 -05:00
parent 8b2aae11d1
commit c39e6b587a

View file

@ -9038,7 +9038,8 @@ BfTypedValue BfExprEvaluator::MatchMethod(BfAstNode* targetSrc, BfMethodBoundExp
}
// Look in globals. Always check for extension methods.
if ((methodDef == NULL) || (wantsExtensionCheck))
if ((((methodDef == NULL) && (!target.HasType())) ||
(wantsExtensionCheck)))
{
if (mModule->mContext->mCurTypeState != NULL)
{