aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--AST.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/AST.cpp b/AST.cpp
index cdc1f6cb..2baf9dae 100644
--- a/AST.cpp
+++ b/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()