From 71737150d4a6bd736257dda457398c77e10095bd Mon Sep 17 00:00:00 2001 From: John Hodge Date: Sat, 24 Sep 2016 13:35:27 +0800 Subject: Resolve Absolute - Emit UfcsUnknown instead of UfcsInherent when splitting multi-node UFCS --- 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 64c446ee..cb02914a 100644 --- a/src/resolve/absolute.cpp +++ b/src/resolve/absolute.cpp @@ -538,7 +538,7 @@ void Resolve_Absolute_Path_BindUFCS(Context& context, const Span& sp, Context::L auto inner_path = mv$(path); inner_path.m_class.as_UFCS().nodes.push_back( mv$(nodes.front()) ); nodes.erase( nodes.begin() ); - path = ::AST::Path( ::AST::Path::TagUfcs(), TypeRef(span, mv$(inner_path)), mv$(nodes) ); + path = ::AST::Path( ::AST::Path::TagUfcs(), TypeRef(span, mv$(inner_path)), ::AST::Path(), mv$(nodes) ); } const auto& ufcs = path.m_class.as_UFCS(); -- cgit v1.2.3