summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-06-11 22:13:48 +0800
committerJohn Hodge <tpg@mutabah.net>2016-06-11 22:13:48 +0800
commit353109b07cfaeee463b71ab47de8471e3d0280e1 (patch)
treefa8a177fd787bb1cc94a9250f813cbc57b48efe6 /src
parent312d91ae9b2e55aa1a447d7994468023490bfeb3 (diff)
downloadmrust-353109b07cfaeee463b71ab47de8471e3d0280e1.tar.gz
HIR Typecheck - Call function types
Diffstat (limited to 'src')
-rw-r--r--src/hir_typeck/expr.cpp4
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,
)