Bläddra i källkod

Fixed property visibility

Brian Fiete 4 år sedan
förälder
incheckning
da49fa0408
1 ändrade filer med 7 tillägg och 4 borttagningar
  1. 7 4
      IDEHelper/Compiler/BfExprEvaluator.cpp

+ 7 - 4
IDEHelper/Compiler/BfExprEvaluator.cpp

@@ -4676,9 +4676,12 @@ BfTypedValue BfExprEvaluator::LookupField(BfAstNode* targetSrc, BfTypedValue tar
 					
 					
 					if ((!target.IsStatic()) || (prop->mIsStatic))
 					if ((!target.IsStatic()) || (prop->mIsStatic))
 					{						
 					{						
-						if ((!curCheckType->IsTypeMemberIncluded(prop->mDeclaringType, activeTypeDef, mModule)) ||
-							(!curCheckType->IsTypeMemberAccessible(prop->mDeclaringType, activeTypeDef)))
-							continue;
+						if (!mModule->IsInSpecializedSection())
+						{
+							if ((!curCheckType->IsTypeMemberIncluded(prop->mDeclaringType, activeTypeDef, mModule)) ||
+								(!curCheckType->IsTypeMemberAccessible(prop->mDeclaringType, mModule->GetVisibleProjectSet())))
+								continue;
+						}
 
 
 						if (matchedProp != NULL)
 						if (matchedProp != NULL)
 						{
 						{
@@ -7182,7 +7185,7 @@ BfTypedValue BfExprEvaluator::MatchConstructor(BfAstNode* targetSrc, BfMethodBou
 			}
 			}
 
 
 			if (!mModule->IsInSpecializedSection())
 			if (!mModule->IsInSpecializedSection())
-			{				
+			{
 				if ((!curTypeInst->IsTypeMemberIncluded(checkMethod->mDeclaringType, activeTypeDef, mModule)) ||
 				if ((!curTypeInst->IsTypeMemberIncluded(checkMethod->mDeclaringType, activeTypeDef, mModule)) ||
 					(!curTypeInst->IsTypeMemberAccessible(checkMethod->mDeclaringType, visibleProjectSet)))
 					(!curTypeInst->IsTypeMemberAccessible(checkMethod->mDeclaringType, visibleProjectSet)))
 					continue;
 					continue;