summaryrefslogtreecommitdiff
path: root/src/resolve
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-11-19 18:41:09 +0800
committerJohn Hodge <tpg@mutabah.net>2016-11-19 18:41:09 +0800
commitefa6da041f5ef34f5513e76d7c231353da6bf660 (patch)
treee31d41613fdec2cfa0d9227eed92e7144ff40c71 /src/resolve
parent6b5241dbd3e46bf78a051b59226bb57bffe5473f (diff)
downloadmrust-efa6da041f5ef34f5513e76d7c231353da6bf660.tar.gz
Resolve Absolute - Add missing union handling
Diffstat (limited to 'src/resolve')
-rw-r--r--src/resolve/absolute.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/resolve/absolute.cpp b/src/resolve/absolute.cpp
index c78554a7..462e1660 100644
--- a/src/resolve/absolute.cpp
+++ b/src/resolve/absolute.cpp
@@ -1186,6 +1186,10 @@ void Resolve_Absolute_Path_BindAbsolute(Context& context, const Span& sp, Contex
path = split_replace_into_ufcs_path(sp, mv$(path), i, name_ref.path);
return Resolve_Absolute_Path_BindUFCS(context, sp, mode, path);
),
+ (Union,
+ path = split_replace_into_ufcs_path(sp, mv$(path), i, name_ref.path);
+ return Resolve_Absolute_Path_BindUFCS(context, sp, mode, path);
+ ),
(Module,
if( name_ref.is_import ) {
//TODO(sp, "Replace path component with new path - " << path << "[.."<<i+1<<"] with " << name_ref.path);