diff options
-rw-r--r-- | src/resolve/absolute.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
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(); } |