mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 20:42:21 +02:00
Make failed indexer match failover to first indexer decl
This commit is contained in:
parent
b4b0edf453
commit
2432ab4921
1 changed files with 1 additions and 2 deletions
|
@ -20960,8 +20960,7 @@ void BfExprEvaluator::Visit(BfIndexerExpression* indexerExpr)
|
|||
methodMatcher.mTarget = target;
|
||||
methodMatcher.CheckMethod(startCheckTypeInst, curCheckType, checkMethod, false);
|
||||
|
||||
if ((methodMatcher.mBestMethodDef == checkMethod) ||
|
||||
((foundProp == NULL) && (methodMatcher.mBackupMethodDef == checkMethod)))
|
||||
if ((methodMatcher.mBestMethodDef == checkMethod) || (methodMatcher.mBackupMethodDef == checkMethod))
|
||||
{
|
||||
foundPropTypeInst = curCheckType;
|
||||
foundProp = prop;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue