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

Put back explicit var lookup disabling

This commit is contained in:
Brian Fiete 2022-06-17 10:32:27 -07:00
parent eeed1bf41c
commit 4d90e98e7e

View file

@ -10728,8 +10728,8 @@ void BfExprEvaluator::LookupQualifiedStaticField(BfAstNode* nameNode, BfIdentifi
// Lookup left side as a type
{
BfType* type = mModule->ResolveTypeRef(nameLeft, NULL, BfPopulateType_Declaration, (BfResolveTypeRefFlags)(BfResolveTypeRefFlag_IgnoreLookupError | BfResolveTypeRefFlag_AllowGlobalContainer));
//if ((type != NULL) && (type->IsVar()) && (nameLeft->Equals("var")))
//type = NULL;
if ((type != NULL) && (type->IsVar()) && (nameLeft->Equals("var")))
type = NULL;
if (type != NULL)
{