diff --git a/libsolidity/AST.cpp b/libsolidity/AST.cpp index cdc1f6cb5..2baf9dae8 100644 --- a/libsolidity/AST.cpp +++ b/libsolidity/AST.cpp @@ -208,8 +208,8 @@ vector, 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(getScope()); + return make_shared(*parentDef); } void InheritanceSpecifier::checkTypeRequirements()