view test/bug-55758/class_bug_55758.m @ 31237:e3016248ca5d

uifigure.m: Call set () only if varargin is not empty (bug #63088) * uifigure.m: Call set () only if varargin is not empty.
author John Donoghue <john.donoghue@ieee.org>
date Wed, 21 Sep 2022 09:55:32 -0400
parents ab9520ef3895
children
line wrap: on
line source

classdef class_bug_55758 < handle
  properties
    value
  endproperties

  methods
    function self = class_bug_55758 (val)
      if (nargin < 1)
        val = 0;
      endif
      self.value = val;
    endfunction

    function delete (self)
      global class_bug_55758_dtor_called;
      class_bug_55758_dtor_called = true;
    endfunction

    function ret = subsref (self, idx)
      ret = self.value;
    endfunction
  endmethods
endclassdef