We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The following code produces the error test.odin(23:5) Invalid use of an empty union 'Element'
test.odin(23:5) Invalid use of an empty union 'Element'
import "core:fmt.odin"; Symbol :: struct { name: string, value: Element, } Cons :: struct { car, cdr: Element, } Element :: union { ^Symbol, ^Cons, } main :: proc() { fmt.println("TEST"); }
while this doesnt
import "core:fmt.odin"; Symbol :: struct { name: string, } Cons :: struct { car, cdr: Element, } Element :: union { ^Symbol, ^Cons, } main :: proc() { fmt.println("TEST"); }
The text was updated successfully, but these errors were encountered:
Fix issue #162 regarding empty unions
6b0d7cb
No branches or pull requests
The following code produces the error
test.odin(23:5) Invalid use of an empty union 'Element'
while this doesnt
The text was updated successfully, but these errors were encountered: