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

Fixed go to definition on type name that matches identifier

This commit is contained in:
Brian Fiete 2022-02-02 09:24:02 -05:00
parent 1f5a56488b
commit 904d2aae6c

View file

@ -2116,7 +2116,7 @@ void BfAutoComplete::CheckTypeRef(BfTypeReference* typeRef, bool mayBeIdentifier
} }
} }
if (mayBeIdentifier) if ((mayBeIdentifier) && (mResolveType != BfResolveType_GoToDefinition))
{ {
if (auto namedTypeRef = BfNodeDynCast<BfNamedTypeReference>(typeRef)) if (auto namedTypeRef = BfNodeDynCast<BfNamedTypeReference>(typeRef))
{ {