Mercurial > octave
view test/fcn-handle/bug51567.m @ 31226:44cf6bbeeca9
sparse-xpow.cc: Change return type from int to bool for internal function
author | Arun Giridhar <arungiridhar@gmail.com> |
---|---|
date | Mon, 12 Sep 2022 05:35:48 -0400 |
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