diff options
author | John Hodge <tpg@mutabah.net> | 2016-11-22 21:57:59 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-11-22 21:57:59 +0800 |
commit | f459cf31501bba8d61e34a2850023dccf57e2466 (patch) | |
tree | f8cfa638f4aeeea6135ddcbccdca94d969fea185 /src/resolve/absolute.cpp | |
parent | 91fc04283896d0db76f601228bd202bcd0291b17 (diff) | |
download | mrust-f459cf31501bba8d61e34a2850023dccf57e2466.tar.gz |
Resolve Absolute - Search value scope for tuple struct patterns
Diffstat (limited to 'src/resolve/absolute.cpp')
-rw-r--r-- | src/resolve/absolute.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resolve/absolute.cpp b/src/resolve/absolute.cpp index fd451ca5..0b9c2476 100644 --- a/src/resolve/absolute.cpp +++ b/src/resolve/absolute.cpp @@ -1774,7 +1774,7 @@ void Resolve_Absolute_Pattern(Context& context, bool allow_refutable, ::AST::Pa Resolve_Absolute_Pattern(context, allow_refutable, sp); ), (StructTuple, - Resolve_Absolute_Path(context, pat.span(), Context::LookupMode::Pattern, e.path); + Resolve_Absolute_Path(context, pat.span(), Context::LookupMode::Constant, e.path); for(auto& sp : e.tup_pat.start) Resolve_Absolute_Pattern(context, allow_refutable, sp); for(auto& sp : e.tup_pat.end) |