Skip to content

Commit ec58338

Browse files
committed
Revert "Fix inference with const opaque closure"
This reverts the bugfix part of commit 07f06d5 but keeps the test.
1 parent 9481e52 commit ec58338

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/compiler/abstractinterpretation.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -1401,7 +1401,7 @@ function abstract_call(interp::AbstractInterpreter, arginfo::ArgInfo,
14011401
f = singleton_type(ft)
14021402
if isa(ft, PartialOpaque)
14031403
return abstract_call_opaque_closure(interp, ft, argtypes[2:end], sv)
1404-
elseif (uft = unwrap_unionall(widenconst(ft)); isa(uft, DataType) && uft.name === typename(Core.OpaqueClosure))
1404+
elseif (uft = unwrap_unionall(ft); isa(uft, DataType) && uft.name === typename(Core.OpaqueClosure))
14051405
return CallMeta(rewrap_unionall((uft::DataType).parameters[2], ft), false)
14061406
elseif f === nothing
14071407
# non-constant function, but the number of arguments is known

0 commit comments

Comments
 (0)