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

Fixed autocomplete type inference issue

This commit is contained in:
Brian Fiete 2020-10-10 15:41:07 -07:00
parent f4ffe67f92
commit 196b9604c1
2 changed files with 2 additions and 2 deletions

View file

@ -424,7 +424,7 @@ BfTypedValue BfAutoComplete::LookupTypeRefOrIdentifier(BfAstNode* node, bool* is
}
else if (auto targetExpr = BfNodeDynCast<BfExpression>(node))
{
return _FixType(mModule->CreateValueFromExpression(targetExpr, NULL, evalExprFlags));
return _FixType(mModule->CreateValueFromExpression(targetExpr, expectingType, evalExprFlags));
}
return BfTypedValue();