diff options
author | John Hodge <tpg@mutabah.net> | 2016-09-28 20:14:11 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-09-28 20:14:11 +0800 |
commit | 47026f277478ffbadb5daa2d85b4600cbec52c9e (patch) | |
tree | 7850eb7cc3c64d37d3d9a0bdb7b3733d5a030e79 /src/ast | |
parent | 00b321213756480775a9cf369bbf715c7e546cd0 (diff) | |
download | mrust-47026f277478ffbadb5daa2d85b4600cbec52c9e.tar.gz |
Resolve+Expand - Don't include the prelude in anon modules (they get it via the parent)
Diffstat (limited to 'src/ast')
-rw-r--r-- | src/ast/ast.hpp | 2 |
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)
|