- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Open
Labels
compiler:loweringSyntax lowering (compiler front end, 2nd stage)Syntax lowering (compiler front end, 2nd stage)
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
nsajko
Metadata
Metadata
Assignees
Labels
compiler:loweringSyntax lowering (compiler front end, 2nd stage)Syntax lowering (compiler front end, 2nd stage)
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
shubh4mk commentedon Nov 11, 2024
topolarity commentedon Feb 20, 2025
On a related (?) note, this segfaults: