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!'])
end
if ~isempty(idArobase)
elements = build_list_of_variables_with_loops(A.name, 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);
end
if ~isempty(idBracket.open)
......
......@@ -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 <http://www.gnu.org/licenses/>.
checknames = isempty(o_list_of_variables);
checknames = ~isempty(o_list_of_variables);
NumberOfImplicitLoops = .5*length(idArobase);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment