summaryrefslogtreecommitdiff
path: root/src/ast
diff options
context:
space:
mode:
Diffstat (limited to 'src/ast')
-rw-r--r--src/ast/ast.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ast/ast.hpp b/src/ast/ast.hpp
index d06f0531..0b2f6729 100644
--- a/src/ast/ast.hpp
+++ b/src/ast/ast.hpp
@@ -525,7 +525,7 @@ public:
}
bool is_anon() const {
- return m_my_path.nodes().back().name()[0] == '#';
+ return m_my_path.nodes().size() > 0 && m_my_path.nodes().back().name()[0] == '#';
}
/// Create an anon module (for use inside expressions)