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
Whilst implementing something in a project I noticed that the below snippet of code would not generate a compilation error, but would instead leave the build in a hung state. The code itself (from my perspective) is nonsensical and I only discovered the issue when the build hung after mistakenly providing the same type to a struct field of type Maybe where the Maybe wraps the same type as the struct it's within.
package test
Test :: struct {
t: Maybe(Test),
}
main :: proc() {}
Odin: dev-2024-11:e6475fec4
OS: Windows 11 Home Basic (version: 23H2), build 22631.4460
CPU: 12th Gen Intel(R) Core(TM) i7-12700KF
RAM: 32487 MiB
Backend: LLVM 18.1.8
Expected Behavior
Compilation failure similar to if you attempt to:
Error: Illegal declaration cycle of `Test`
Current Behavior
Compilation hangs and will not halt unless the user forces it to.
The text was updated successfully, but these errors were encountered:
Context
Whilst implementing something in a project I noticed that the below snippet of code would not generate a compilation error, but would instead leave the build in a hung state. The code itself (from my perspective) is nonsensical and I only discovered the issue when the build hung after mistakenly providing the same type to a struct field of type
Maybe
where theMaybe
wraps the same type as the struct it's within.Expected Behavior
Compilation failure similar to if you attempt to:
Current Behavior
Compilation hangs and will not halt unless the user forces it to.
The text was updated successfully, but these errors were encountered: