implement getType() for EnumValue

This commit is contained in:
Lefteris Karapetsas 2015-02-13 17:32:34 +01:00
parent 52808f67fa
commit fb4ff4af28

View File

@ -208,8 +208,8 @@ vector<pair<FixedHash<4>, FunctionTypePointer>> const& ContractDefinition::getIn
TypePointer EnumvValue::getType(ContractDefinition const*) const TypePointer EnumvValue::getType(ContractDefinition const*) const
{ {
// LTODO: How to get the parent EnumDefinition and return its type here? EnumDefinition const* parentDef = dynamic_cast<EnumDefinition const*>(getScope());
return nullptr; return make_shared<EnumType>(*parentDef);
} }
void InheritanceSpecifier::checkTypeRequirements() void InheritanceSpecifier::checkTypeRequirements()