diff options
author | John Hodge <tpg@mutabah.net> | 2015-03-27 11:42:21 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2015-03-27 11:42:21 +0800 |
commit | 27362c07d86e3d24b75545916697f124d826bbc9 (patch) | |
tree | 728800bb9760fd8b7f43f44d854b2d2ab9a90201 /src/ast/path.hpp | |
parent | 17ea6a8317e7bf1c86f150b486892bae7e312c11 (diff) | |
download | mrust-27362c07d86e3d24b75545916697f124d826bbc9.tar.gz |
Fix minor issues in path resolving (bindings incorrect in places)
Diffstat (limited to 'src/ast/path.hpp')
-rw-r--r-- | src/ast/path.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ast/path.hpp b/src/ast/path.hpp index b3af8c52..027f8f35 100644 --- a/src/ast/path.hpp +++ b/src/ast/path.hpp @@ -218,6 +218,7 @@ public: m_nodes.back().args() = b[0].args(); for(unsigned int i = 1; i < b.m_nodes.size(); i ++) m_nodes.push_back(b.m_nodes[i]); + m_binding = PathBinding(); } Path operator+(PathNode&& pn) const { Path tmp; @@ -236,6 +237,7 @@ public: void append(PathNode node) { m_nodes.push_back(node); + m_binding = PathBinding(); } void resolve(const Crate& crate); |