mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 04:22:20 +02:00
Fixed erroneous global method lookup when type is specified
This commit is contained in:
parent
8b2aae11d1
commit
c39e6b587a
1 changed files with 2 additions and 1 deletions
|
@ -9038,7 +9038,8 @@ BfTypedValue BfExprEvaluator::MatchMethod(BfAstNode* targetSrc, BfMethodBoundExp
|
||||||
}
|
}
|
||||||
|
|
||||||
// Look in globals. Always check for extension methods.
|
// Look in globals. Always check for extension methods.
|
||||||
if ((methodDef == NULL) || (wantsExtensionCheck))
|
if ((((methodDef == NULL) && (!target.HasType())) ||
|
||||||
|
(wantsExtensionCheck)))
|
||||||
{
|
{
|
||||||
if (mModule->mContext->mCurTypeState != NULL)
|
if (mModule->mContext->mCurTypeState != NULL)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue