diff options
author | John Hodge <tpg@mutabah.net> | 2016-08-29 15:38:45 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-08-29 15:38:45 +0800 |
commit | a8da316a2646428acb780e889b322edf5f00549e (patch) | |
tree | 4c1091513ebac4d816ad1022765622845e090334 | |
parent | bff6e3261499d58b34ad0d142d8056db90c7d4ac (diff) | |
download | mrust-a8da316a2646428acb780e889b322edf5f00549e.tar.gz |
Resolve Abs - Comment about hacked-around quirk
-rw-r--r-- | src/resolve/absolute.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/resolve/absolute.cpp b/src/resolve/absolute.cpp index 3b5a1d2f..5b87a245 100644 --- a/src/resolve/absolute.cpp +++ b/src/resolve/absolute.cpp @@ -900,7 +900,9 @@ void Resolve_Absolute_Path(/*const*/ Context& context, const Span& sp, Context:: // Look up type/module name auto p = context.lookup(sp, e.nodes[0].name(), Context::LookupMode::Namespace); DEBUG("Found type/mod - " << p); - // TODO: If this is a primitive name, and the next component isn't found in the located module, force to be the type + // HACK: If this is a primitive name, and resolved to a module. + // - If the next component isn't found in the located module + // > Instead use the type name. if( ! p.m_class.is_Local() && coretype_fromstring(e.nodes[0].name()) != CORETYPE_INVAL ) { TU_IFLET( ::AST::PathBinding, p.binding(), Module, pe, bool found = false; |