mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 04:22:20 +02:00
Disallow explicit var
member lookups
This commit is contained in:
parent
b564611697
commit
5c59fe694d
1 changed files with 3 additions and 0 deletions
|
@ -10721,6 +10721,9 @@ 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)
|
||||
{
|
||||
BfTypedValue lookupType;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue