diff options
author | John Hodge <tpg@mutabah.net> | 2016-09-29 09:40:00 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-09-29 09:40:00 +0800 |
commit | 4191dc24ec72f7959720866281d0657495da0b8b (patch) | |
tree | 9962b5bbd152219b3c2fb91a2acf07eb267161be /src | |
parent | bb2b8ce80e56acceea8005fbc00e2e042382a2a0 (diff) | |
download | mrust-4191dc24ec72f7959720866281d0657495da0b8b.tar.gz |
HIR Typecheck Expr - Report have/exp argument counts
Diffstat (limited to 'src')
-rw-r--r-- | src/hir_typeck/expr_cs.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/hir_typeck/expr_cs.cpp b/src/hir_typeck/expr_cs.cpp index 7e1966b3..6876add7 100644 --- a/src/hir_typeck/expr_cs.cpp +++ b/src/hir_typeck/expr_cs.cpp @@ -1101,7 +1101,8 @@ namespace { assert( node.m_cache.m_arg_types.size() >= 1); if( node.m_args.size() != node.m_cache.m_arg_types.size() - 1 ) { - ERROR(node.span(), E0000, "Incorrect number of arguments to " << node.m_path); + ERROR(node.span(), E0000, "Incorrect number of arguments to " << node.m_path + << " - exp " << node.m_cache.m_arg_types.size()-1 << " got " << node.m_args.size()); } } |