view test/fcn-handle/bug51567.m @ 31214:19bd1953fc1d stable

GitHub-CI: Remove ubuntu-18.04 runners from build matrix. * .github/workflow/make.yaml (ubuntu): GitHub-hosted runners for ubuntu-18.04 are being deprecated. Remove them from build matrix. See also: https://github.com/actions/runner-images/issues/6002
author Markus Mützel <markus.muetzel@gmx.de>
date Tue, 30 Aug 2022 11:16:27 +0200
parents 5bca1527b034
children
line wrap: on
line source

classdef bug51567 < handle
  properties
    fh1;
    fh2;
  endproperties
  methods
    function obj = bug51567 (self)
      obj.fh1 = str2func ("bar");
      obj.fh2 = @baz;
    endfunction
    function r = bar (obj)
      r = 13;
    endfunction
    function r = baz (obj)
      r = 42;
    endfunction
    function r = doit_1 (obj)
      r = obj.fh1 ();
    endfunction
    function r = doit_2 (obj)
      r = obj.fh2 ();
    endfunction
  endmethods
endclassdef