classdef tst_nargout
  methods
    function varargout = subsref (obj, s)
      nout = nargout
    end

    function varargout = myfunc (obj, s)
      nout = nargout
    end

  end
end
