summaryrefslogtreecommitdiff
path: root/src/resolve/use.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/resolve/use.cpp')
-rw-r--r--src/resolve/use.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/resolve/use.cpp b/src/resolve/use.cpp
index 9c5bf090..89957696 100644
--- a/src/resolve/use.cpp
+++ b/src/resolve/use.cpp
@@ -324,6 +324,10 @@ void Resolve_Use_Mod(const ::AST::Crate& crate, ::AST::Module& mod, ::AST::Path
if( allow != Lookup::Value )
return ::AST::PathBinding::make_Enum({&e});
),
+ (Union,
+ if( allow != Lookup::Value )
+ return ::AST::PathBinding::make_Union({&e});
+ ),
(Module,
if( allow != Lookup::Value )
return ::AST::PathBinding::make_Module({&e});
@@ -591,6 +595,9 @@ namespace {
(Struct,
return ::AST::PathBinding::make_Struct({nullptr, &e});
),
+ (Union,
+ return ::AST::PathBinding::make_Union({nullptr, &e});
+ ),
(Trait,
return ::AST::PathBinding::make_Trait({nullptr, &e});
)