Open
Description
The following fails to properly closure convert one of the references to X, leading to an incorrect error:
julia> struct X <: (global f; (f() = X); Any)
x::f()
end
ERROR: TypeError: in Type, in parameter, expected Type, got a value of type Core.Box
Stacktrace:
[1] top-level scope
@ REPL[1]:1