mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-14 14:24:10 +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.mTarget = target;
|
||||||
methodMatcher.CheckMethod(startCheckTypeInst, curCheckType, checkMethod, false);
|
methodMatcher.CheckMethod(startCheckTypeInst, curCheckType, checkMethod, false);
|
||||||
|
|
||||||
if ((methodMatcher.mBestMethodDef == checkMethod) ||
|
if ((methodMatcher.mBestMethodDef == checkMethod) || (methodMatcher.mBackupMethodDef == checkMethod))
|
||||||
((foundProp == NULL) && (methodMatcher.mBackupMethodDef == checkMethod)))
|
|
||||||
{
|
{
|
||||||
foundPropTypeInst = curCheckType;
|
foundPropTypeInst = curCheckType;
|
||||||
foundProp = prop;
|
foundProp = prop;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue