diff options
author | John Hodge <tpg@mutabah.net> | 2018-05-27 11:33:04 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2018-05-27 11:33:04 +0800 |
commit | af1ec8a893d33aa974186d06498d0fc81d22ae7b (patch) | |
tree | 294ad6c81512df1901af85df5e563db2a98c33c7 /src/resolve | |
parent | 84392bea7f6f0754f61d5b424129eb5fa809674d (diff) | |
download | mrust-af1ec8a893d33aa974186d06498d0fc81d22ae7b.tar.gz |
AST - Include HRBs on fn() types, fix minor parsing bug
Diffstat (limited to 'src/resolve')
-rw-r--r-- | src/resolve/absolute.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/resolve/absolute.cpp b/src/resolve/absolute.cpp index ceb0e40a..f114fd78 100644 --- a/src/resolve/absolute.cpp +++ b/src/resolve/absolute.cpp @@ -1512,10 +1512,12 @@ void Resolve_Absolute_Type(Context& context, TypeRef& type) (Primitive, ), (Function, + context.push( e.info.hrbs ); Resolve_Absolute_Type(context, *e.info.m_rettype); for(auto& t : e.info.m_arg_types) { Resolve_Absolute_Type(context, t); } + context.pop( e.info.hrbs ); ), (Tuple, for(auto& t : e.inner_types) |