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

# · MATLAB · 20 lines · 17 code · 3 blank · 0 comment · 3 complexity · d60ea74e7cc3837fadb765ef21164ddc MD5 · raw file

  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