mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Improvements to handling of pointers to reference types
This commit is contained in:
parent
0030236705
commit
8a4bf7ac8c
2 changed files with 32 additions and 17 deletions
|
@ -1878,7 +1878,11 @@ bool BfAutoComplete::CheckMemberReference(BfAstNode* target, BfAstNode* dotToken
|
|||
}
|
||||
|
||||
if (checkType->IsPointer())
|
||||
checkType = checkType->GetUnderlyingType();
|
||||
{
|
||||
auto underlyingType = checkType->GetUnderlyingType();
|
||||
if ((underlyingType != NULL) && (underlyingType->IsValueType()))
|
||||
checkType = underlyingType;
|
||||
}
|
||||
auto typeInst = checkType->ToTypeInstance();
|
||||
if ((typeInst == NULL) &&
|
||||
((checkType->IsPrimitiveType()) || (checkType->IsSizedArray())))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue