Commit 68f1f512 authored by Stéphane Adjemian's avatar Stéphane Adjemian

Fixed bug (implicit loops in subsasgn).

parent 22f6e3f6
......@@ -52,7 +52,7 @@ switch length(S)
error(['dseries::subsasgn: You cannot use implicit loops and regular expressions in the same rule!'])
if ~isempty(idArobase)
elements = build_list_of_variables_with_loops(, idArobase, element, {});
elements = build_list_of_variables_with_loops({}, idArobase, element, {});
S(1).subs = replace_object_in_a_one_dimensional_cell_array(S(1).subs, elements(:), i);
if ~isempty(
......@@ -17,7 +17,7 @@ function list_of_variables = build_list_of_variables_with_loops(o_list_of_variab
% You should have received a copy of the GNU General Public License
% along with Dynare. If not, see <>.
checknames = isempty(o_list_of_variables);
checknames = ~isempty(o_list_of_variables);
NumberOfImplicitLoops = .5*length(idArobase);
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment