Merge pull request #1264 from ethereum/988

State variable under contract's name
This commit is contained in:
chriseth authored and GitHub committed 2016-10-25 12:50:24 +02:00
commit e00a4b47c0
6 files changed
+150 -10

No files matched your search

+5
View File
@@ -1386,6 +1386,11 @@ bool TypeChecker::visit(MemberAccess const& _memberAccess)
}
else if (exprType->category() == Type::Category::FixedBytes)
annotation.isLValue = false;
else if (TypeType const* typeType = dynamic_cast<decltype(typeType)>(exprType.get()))
{
if (ContractType const* contractType = dynamic_cast<decltype(contractType)>(typeType->actualType().get()))
annotation.isLValue = annotation.referencedDeclaration->isLValue();
}
return false;
}