view test/ctor-vs-method/@derived/parent.m @ 15564:b66be1cb12ca default tip

Merge proper file rename
author Jordi Gutiérrez Hermoso <jordigh@octave.org>
date Thu, 25 Oct 2012 16:48:35 -0400
parents 6c952376482d
children
line wrap: on
line source

function r = parent (a)
  __trace__ ('begin derived/parent');
  if (isa (a, 'parent'))
    r = parent (a.parent);
  else
    error ('foo');
  end
  __trace__ ('end derived/parent');
end