Mercurial > octave
view test/bug-41723/class_bug41723.m @ 31197:8d4c87e88d0e
maint: Merge stable to default.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Tue, 23 Aug 2022 19:45:19 +0200 |
parents | 67a638ac7f24 |
children |
line wrap: on
line source
classdef class_bug41723 < handle properties value endproperties methods function obj = class_bug41723 () obj.value = helper_function (); endfunction function val = getval (obj) val = helper_function_2 (); endfunction endmethods endclassdef function y = helper_function () y = 42; endfunction function y = helper_function_2 (in) if (! nargin) y = helper_function_2 (true); else y = 2 * helper_function (); endif endfunction