From 375607009b31a21113616ead12716007789f9435 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Wed, 31 Aug 2016 18:33:29 +0800 Subject: Resolve Abs - Fix primitive hack --- src/resolve/absolute.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/resolve/absolute.cpp b/src/resolve/absolute.cpp index cf7393ab..15401bc9 100644 --- a/src/resolve/absolute.cpp +++ b/src/resolve/absolute.cpp @@ -1111,8 +1111,12 @@ void Resolve_Absolute_Path(/*const*/ Context& context, const Span& sp, Context:: if( !found ) { //TODO(sp, "Switch back to primitive from " << p << " for " << path); - p = ::AST::Path( ::AST::Path::TagLocal(), e.nodes[0].name() ); + //p = ::AST::Path( ::AST::Path::TagLocal(), e.nodes[0].name() ); + auto ct = coretype_fromstring(e.nodes[0].name()); + p = ::AST::Path( ::AST::Path::TagUfcs(), TypeRef(Span("-",0,0,0,0), ct), ::AST::Path(), ::std::vector< ::AST::PathNode>() ); } + + DEBUG("Primitive module hack yeilded " << p); ) } -- cgit v1.2.3