Skip to content

Commit 59c365c

Browse files
committed
Put inference parameters in a dedicated object.
This allows overriding parameters, while reducing global state and simplifying the API.
1 parent ec80011 commit 59c365c

File tree

3 files changed

+94
-59
lines changed

3 files changed

+94
-59
lines changed

base/REPLCompletions.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ function get_type_call(expr::Expr)
285285
length(mt) == 1 || return (Any, false)
286286
m = first(mt)
287287
# Typeinference
288-
return_type = Core.Inference.typeinf_type(m[3], m[1], m[2])
288+
return_type = Core.Inference.typeinf_type(m[3], m[1], m[2], Core.Inference.InferenceParams())
289289
return_type === nothing && return (Any, false)
290290
return (return_type, true)
291291
end

0 commit comments

Comments
 (0)