# HG changeset patch # User Max Brister # Date 1345923408 21600 # Node ID b0c08e995950264214367ffda28641c29b3f2ee6 # Parent e5a86de6023c3f3310a349a9dbe295d81662f4ea pt-jit.cc (jit_convert::get_variable): Add type bound diff -r e5a86de6023c -r b0c08e995950 libinterp/interp-core/pt-jit.cc --- a/libinterp/interp-core/pt-jit.cc Sat Aug 25 13:11:34 2012 -0500 +++ b/libinterp/interp-core/pt-jit.cc Sat Aug 25 13:36:48 2012 -0600 @@ -740,6 +740,8 @@ octave_value val = symbol_table::find (vname); jit_type *type = jit_typeinfo::type_of (val); + bounds.push_back (type_bound (type, vname)); + return create_variable (vname, type); } @@ -2012,4 +2014,14 @@ %!error test_compute_idom () +%!function x = test_overload (a) +%! while 1 +%! x = a; +%! break; +%! endwhile +%!endfunction + +%!assert (test_overload (1), 1); +%!assert (test_overload ([1 2]), [1 2]); + */