view test/bug-59704/bug59704_1.m @ 29316:09f99fe5190c stable

Fix ignored output from user function in left side of assignment (bug #59704). * libinterp/parse-tree/pt-assign.cc (tree_multi_assignment::evaluate_n): Set lvalue list of tree_evaluator only to process the right side of the assignment. Reset it to null after that. * test/bug-59704/bug59704_2.m, test/bug-59704/bug-59704.tst, test/bug-59704/module.mk: Add new test case.
author Fernando Alvarruiz <feralber@upvnet.upv.es>
date Sun, 03 Jan 2021 20:48:09 +0100
parents 67857e94604a
children
line wrap: on
line source

classdef bug59704_1 < handle

  properties
    p
  endproperties

  methods

    function n = numel (this, varargin)
      n = 1;
    endfunction

    function test (this)
      [~, this.p] = bug59704_1_test (this.p);
    endfunction

  endmethods

endclassdef