summaryrefslogtreecommitdiff
path: root/src/resolve/index.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/resolve/index.cpp')
-rw-r--r--src/resolve/index.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/resolve/index.cpp b/src/resolve/index.cpp
index b5fdbf33..e905de26 100644
--- a/src/resolve/index.cpp
+++ b/src/resolve/index.cpp
@@ -107,6 +107,10 @@ void Resolve_Index_Module_Base(AST::Module& mod)
(Struct,
_add_item_type(mod, i.name, i.is_pub, b.clone());
+ // - If the struct is a tuple-like struct, it presents in the value namespace
+ if( e.struct_->m_data.is_Tuple() ) {
+ _add_item_value(mod, i.name, i.is_pub, b.clone());
+ }
),
(Static , _add_item_value(mod, i.name, i.is_pub, b.clone()); ),
(Function, _add_item_value(mod, i.name, i.is_pub, b.clone()); ),