diff options
author | John Hodge <tpg@mutabah.net> | 2016-09-24 09:54:35 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-09-24 09:54:35 +0800 |
commit | b236bbfb13db816666803778b79c22784088efb3 (patch) | |
tree | c990b07446992b4ef6dfb9bc26428a7c39223242 | |
parent | e652bbb8630bc0c6708ca2a88d3d9938c8b9982a (diff) | |
download | mrust-b236bbfb13db816666803778b79c22784088efb3.tar.gz |
HIR Typecheck Expressions - Add ivars to method params
-rw-r--r-- | src/hir_typeck/expr_cs.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/hir_typeck/expr_cs.cpp b/src/hir_typeck/expr_cs.cpp index aecb7506..2f02c722 100644 --- a/src/hir_typeck/expr_cs.cpp +++ b/src/hir_typeck/expr_cs.cpp @@ -1144,6 +1144,9 @@ namespace { for( auto& val : node.m_args ) { this->context.add_ivars( val->m_res_type ); } + for( auto& ty : node.m_params.m_types ) { + this->context.add_ivars( ty ); + } // - Search in-scope trait list for traits that provide a method of this name const ::std::string& method_name = node.m_method; |