From 3081e4762069a8ba401f77bee4951061b1e9589a Mon Sep 17 00:00:00 2001 From: John Hodge Date: Fri, 6 May 2016 10:37:20 +0800 Subject: Resolve/absolute - Passing for libcore --- src/resolve/absolute.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/resolve/absolute.cpp b/src/resolve/absolute.cpp index ad75a206..b3722f29 100644 --- a/src/resolve/absolute.cpp +++ b/src/resolve/absolute.cpp @@ -165,6 +165,7 @@ struct Context enum class LookupMode { + //Namespace, Type, Constant, Pattern, @@ -302,6 +303,13 @@ struct Context return rv; } + // Look up primitive types + auto ct = coretype_fromstring(name); + if( ct != CORETYPE_INVAL ) + { + return ::AST::Path( ::AST::Path::TagUfcs(), TypeRef(Span(), ct), ::std::vector< ::AST::PathNode>() ); + } + return AST::Path(); } -- cgit v1.2.3