PageRenderTime 64ms CodeModel.GetById 60ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

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

#
Objective C | 20 lines | 17 code | 3 blank | 0 comment | 6 complexity | d60ea74e7cc3837fadb765ef21164ddc MD5 | raw file
 1li_implicit
 2b = B();
 3ai = A(1);
 4ad = A(2.0);
 5ab = A(b);
 6
 7ai, get(ai);
 8ad, get(ad);
 9ab, get(ab);
10
11if (get(ai) != get(1))
12  error("bad implicit type")
13endif
14if (get(ad) != get(2.0))
15  error("bad implicit type")
16endif
17if (get(ab) != get(b))
18  error("bad implicit type")
19endif
20