Skip to content

Commit 6e78b27

Browse files
committed
fix: attempt type stability fix for union of Type{Union{}} with other type
1 parent b66b178 commit 6e78b27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Evaluate.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ end
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-
function _get_return_type(tree, cX, operators, eval_options)
349+
@unstable function _get_return_type(tree, cX, operators, eval_options)
350350
# public Julia API version of `Core.Compiler.return_type(_eval_tree_array, typeof((tree, cX, operators, eval_options)))`
351351
return eltype([_eval_tree_array(tree, cX, operators, eval_options) for _ in 1:0])
352352
end

0 commit comments

Comments
 (0)