From a8fbfa06f2e8473e9190f5192b625a1d23b3c936 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Wed, 7 Sep 2016 12:24:57 +0800 Subject: Resolve Abs - Better impl of previous hack --- src/resolve/absolute.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/resolve/absolute.cpp b/src/resolve/absolute.cpp index 507ad3d7..b2966022 100644 --- a/src/resolve/absolute.cpp +++ b/src/resolve/absolute.cpp @@ -1561,9 +1561,9 @@ void Resolve_Absolute_Pattern(Context& context, bool allow_refutable, ::AST::Pa // Attempt to resolve the name in the current namespace, and if it fails, it's a binding auto p = context.lookup_opt( name, Context::LookupMode::Constant ); if( p.is_valid() ) { + Resolve_Absolute_Path(context, pat.span(), Context::LookupMode::Constant, p); pat = ::AST::Pattern(::AST::Pattern::TagValue(), ::AST::Pattern::Value::make_Named(mv$(p))); DEBUG("MaybeBind resolved to " << pat); - Resolve_Absolute_Pattern(context, allow_refutable, pat); } else { pat = ::AST::Pattern(::AST::Pattern::TagBind(), mv$(name)); -- cgit v1.2.3