Skip to content
New issue

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

"invalid enum constant value" when initializing an enum value with a constant non-literal expression #193

Closed
mverzilli opened this issue Sep 2, 2014 · 1 comment

Comments

@mverzilli
Copy link

Please accept my apologies if it's by design!

lib LibFoo("AnyLib")
  enum Foo
    A = 0x01
    B = 0x10 | A
  end
end

puts LibFoo::Foo::B  #=> invalid enum constant value B = 0x10 | A
@asterite
Copy link
Member

asterite commented Sep 2, 2014

It's not by design, it was a limitation :-)

Now it works (in the next compiler, which you can create with make)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants