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.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ast/path.cpp b/src/ast/path.cpp
index fd543120..6d5e50b2 100644
--- a/src/ast/path.cpp
+++ b/src/ast/path.cpp
@@ -143,7 +143,9 @@ void Path::resolve(const Crate& root_crate)
{
DEBUG("Found function");
if( is_last ) {
- throw ParseError::Todo("Path::resolve() bind to function");
+ m_binding_type = FUNCTION;
+ m_binding.func_ = &it->data;
+ return ;
}
else {
throw ParseError::Generic("Import of function, too many extra nodes");