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.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/ast/path.cpp b/src/ast/path.cpp
index e6700696..636c4166 100644
--- a/src/ast/path.cpp
+++ b/src/ast/path.cpp
@@ -103,7 +103,14 @@ void Path::resolve(const Crate& root_crate)
throw ParseError::Generic("Param count mismatch when referencing type alias");
// Make a copy of the path, replace params with it, then replace *this?
// - Maybe leave that up to other code?
- throw ParseError::Todo("Path::resolve() type alias");
+ if( is_last ) {
+ m_binding_type = ALIAS;
+ m_binding.alias = &it->data;
+ return ;
+ }
+ else {
+ throw ParseError::Todo("Path::resolve() type method");
+ }
}
}