From 27362c07d86e3d24b75545916697f124d826bbc9 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Fri, 27 Mar 2015 11:42:21 +0800 Subject: Fix minor issues in path resolving (bindings incorrect in places) --- src/ast/path.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/ast/path.hpp') 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); -- cgit v1.2.3