346346
347347#  TODO : Hack to fix type instability in some branches that can't be inferred.
348348#  It does this using the other branches, which _can_ be inferred.
349- @unstable  function  _get_return_type (tree, cX, operators, eval_options)
350-     #  public Julia API version of `Core.Compiler.return_type(_eval_tree_array, typeof((tree, cX, operators, eval_options)))`
351-     return  eltype ([_eval_tree_array (tree, cX, operators, eval_options) for  _ in  1 : 0 ])
349+ @unstable  function  _get_return_type (tree, cX, eval_options)
350+     return  Core. Compiler. return_type (deg0_eval, typeof ((tree, cX, eval_options)))
352351end 
353352
354353#  This basically forms an if statement over the operators for the degree.
@@ -361,7 +360,7 @@ function inner_dispatch_degn_eval(
361360) where  {T,degree}
362361    return  _inner_dispatch_degn_eval (
363362        tree, cX, Val (degree), operators, eval_options
364-     ):: (_get_return_type(tree, cX, operators,  eval_options) )
363+     ):: (_get_return_type(tree, cX, eval_options) )
365364end 
366365@generated  function  _inner_dispatch_degn_eval (
367366    tree:: AbstractExpressionNode{T} ,
0 commit comments