mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
implement getType() for EnumValue
This commit is contained in:
parent
52808f67fa
commit
fb4ff4af28
4
AST.cpp
4
AST.cpp
@ -208,8 +208,8 @@ vector<pair<FixedHash<4>, FunctionTypePointer>> const& ContractDefinition::getIn
|
||||
|
||||
TypePointer EnumvValue::getType(ContractDefinition const*) const
|
||||
{
|
||||
// LTODO: How to get the parent EnumDefinition and return its type here?
|
||||
return nullptr;
|
||||
EnumDefinition const* parentDef = dynamic_cast<EnumDefinition const*>(getScope());
|
||||
return make_shared<EnumType>(*parentDef);
|
||||
}
|
||||
|
||||
void InheritanceSpecifier::checkTypeRequirements()
|
||||
|
Loading…
Reference in New Issue
Block a user