view test/bug-38565.tst @ 20601:5d31cd795c21 stable

methods.m: try Java class names if getMethods fails on Java objects (bug #46010)
author Philip Nienhuis <prnienhuis@users.sf.net>
date Fri, 02 Oct 2015 17:44:53 +0200
parents b9e510a1f308
children
line wrap: on
line source

%!function r = f (x)
%!  if (ischar (x))
%!    r = x;
%!  else
%!    error ("expecting character string");
%!  endif
%!endfunction

%!assert (eval ("f 10;"), "10");