PageRenderTime 35ms CodeModel.GetById 8ms RepoModel.GetById 1ms app.codeStats 0ms

/trunk/Examples/test-suite/octave/li_implicit_runme.m

#
MATLAB | 20 lines | 17 code | 3 blank | 0 comment | 3 complexity | d60ea74e7cc3837fadb765ef21164ddc MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. li_implicit
  2. b = B();
  3. ai = A(1);
  4. ad = A(2.0);
  5. ab = A(b);
  6. ai, get(ai);
  7. ad, get(ad);
  8. ab, get(ab);
  9. if (get(ai) != get(1))
  10. error("bad implicit type")
  11. endif
  12. if (get(ad) != get(2.0))
  13. error("bad implicit type")
  14. endif
  15. if (get(ab) != get(b))
  16. error("bad implicit type")
  17. endif