diff options
author | John Hodge <tpg@mutabah.net> | 2016-10-14 10:09:16 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-10-14 10:09:16 +0800 |
commit | 0bdf296b34628fcfe6bbf73f6b578dd894960a7f (patch) | |
tree | 51e43c499ce21cbae99e75c08becb63829333ae0 /src/resolve | |
parent | 263457e122af7a4b4618ab81611ead723dd70a90 (diff) | |
download | mrust-0bdf296b34628fcfe6bbf73f6b578dd894960a7f.tar.gz |
Resolve Abolute - Allow type aliases in paths
Diffstat (limited to 'src/resolve')
-rw-r--r-- | src/resolve/absolute.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/resolve/absolute.cpp b/src/resolve/absolute.cpp index 793975fe..f466a40f 100644 --- a/src/resolve/absolute.cpp +++ b/src/resolve/absolute.cpp @@ -1069,6 +1069,10 @@ void Resolve_Absolute_Path_BindAbsolute(Context& context, const Span& sp, Contex ( ERROR(sp, E0000, "Encountered non-namespace item '" << n.name() << "' ("<<name_ref.path<<") in path " << path); ), + (TypeAlias, + path = split_replace_into_ufcs_path(sp, mv$(path), i, name_ref.path); + return Resolve_Absolute_Path_BindUFCS(context, sp, mode, path); + ), (Crate, Resolve_Absolute_Path_BindAbsolute__hir_from(context, sp, mode, path, *e.crate_, i+1); return ; |