diff options
author | John Hodge <tpg@mutabah.net> | 2016-06-11 22:13:48 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-06-11 22:13:48 +0800 |
commit | 353109b07cfaeee463b71ab47de8471e3d0280e1 (patch) | |
tree | fa8a177fd787bb1cc94a9250f813cbc57b48efe6 | |
parent | 312d91ae9b2e55aa1a447d7994468023490bfeb3 (diff) | |
download | mrust-353109b07cfaeee463b71ab47de8471e3d0280e1.tar.gz |
HIR Typecheck - Call function types
-rw-r--r-- | src/hir_typeck/expr.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/hir_typeck/expr.cpp b/src/hir_typeck/expr.cpp index cc7fa04a..a11b5e7e 100644 --- a/src/hir_typeck/expr.cpp +++ b/src/hir_typeck/expr.cpp @@ -1435,7 +1435,9 @@ namespace typeck { node.m_arg_types.push_back( mv$(fcn_ret) ); ), (Function, - TODO(node.span(), "CallValue with Function - " << ty); + for( const auto& arg : e.m_arg_types ) + node.m_arg_types.push_back( arg.clone() ); + node.m_arg_types.push_back( e.m_rettype->clone() ); ), (Infer, ) |