summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/trans/enumerate.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/trans/enumerate.cpp b/src/trans/enumerate.cpp
index a94f21e5..294cc228 100644
--- a/src/trans/enumerate.cpp
+++ b/src/trans/enumerate.cpp
@@ -127,6 +127,11 @@ namespace {
(
BUG(sp, "Node " << i << " of path " << path << " wasn't a module");
),
+ (Enum,
+ ASSERT_BUG(sp, i == path.m_components.size() - 2, "Enum found somewhere other than penultimate posiiton in " << path);
+ // TODO: Check that this is a tuple variant
+ return EntPtr::make_AutoGenerate({});
+ ),
(Module,
mod = &e2;
)