summaryrefslogtreecommitdiff
path: root/src/ast/path.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ast/path.cpp')
-rw-r--r--src/ast/path.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ast/path.cpp b/src/ast/path.cpp
index 83cc98dc..4cf74368 100644
--- a/src/ast/path.cpp
+++ b/src/ast/path.cpp
@@ -102,7 +102,7 @@ void Path::resolve(const Crate& root_crate)
continue ;
}
- auto item = mod->find_item(node.name());
+ auto item = mod->find_item(node.name(), is_last); // Only allow leaf nodes (functions and statics) if this is the last node
switch( item.type() )
{
// Not found