view test/nest/varg_nest2.m @ 19809:68cc16969f78

gmap40.m: fix for corner case when N is 1
author Carnë Draug <carandraug@octave.org>
date Fri, 23 Jan 2015 16:33:02 +0000
parents 8e2906e2fb26
children
line wrap: on
line source

function x = varg_nest2
  [a, b] = f;
  x = a;

  if nargout == 1
    x = a;
  endif

  function [a, b] = f
    if nargout == 2
      a = b = 5;
    endif
  endfunction
endfunction