You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's caused by the fact that we resolve type aliases before structs -- this example can be fixed by changing the resolution order (calling resolve_type_aliases before resolve_structs), however we can have both structs referencing typedefs and typedefs referencing structs, for which there's no trivial fix:
structFoo{}typeStillFoo = Foo;structBar{foo:StillFoo,}fnmain(){let bar = Bar{foo:Foo{}};}
Expected Behavior
The examples above work
Bug
ICE
Installation Method
Compiled from source
Would you like to submit a PR for this Issue?
Yes
The text was updated successfully, but these errors were encountered:
Aim
This code panics with an internal compiler error:
It's caused by the fact that we resolve type aliases before structs -- this example can be fixed by changing the resolution order (calling
resolve_type_aliases
beforeresolve_structs
), however we can have both structs referencing typedefs and typedefs referencing structs, for which there's no trivial fix:Expected Behavior
The examples above work
Bug
ICE
Installation Method
Compiled from source
Would you like to submit a PR for this Issue?
Yes
The text was updated successfully, but these errors were encountered: