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

Allow creating None enum flag with Enum.from_value #6516

Conversation

bew
Copy link
Contributor

@bew bew commented Aug 10, 2018

Fixes #5768

It also adds type restrictions to Int, and fix one usage in src/debug/elf.cr

@bew bew force-pushed the allow-creating-none-enum-flags-from-value branch from c62e23a to 5736077 Compare August 10, 2018 17:03
@bew
Copy link
Contributor Author

bew commented Dec 27, 2018

Good to go? (one of travis check failed for another reason)

@RX14
Copy link
Contributor

RX14 commented Dec 27, 2018

Can this be rebased on master so we're sure there are no more spec failures?

@bew bew force-pushed the allow-creating-none-enum-flags-from-value branch from 5736077 to b7fca2b Compare December 27, 2018 23:26
src/debug/elf.cr Show resolved Hide resolved
@bew
Copy link
Contributor Author

bew commented Dec 28, 2018

So I rebased on master, one of travis job fails for a weird reason: https://travis-ci.org/crystal-lang/crystal/jobs/472825523

@RX14
Copy link
Contributor

RX14 commented Dec 28, 2018

@bew thats just OOM

@bew
Copy link
Contributor Author

bew commented Dec 28, 2018

that's just OOM

yeah sure, but it's still not wanted^^

@RX14
Copy link
Contributor

RX14 commented Dec 28, 2018

Travis builds randomly fail from OOM all the time

@straight-shoota straight-shoota added this to the 0.28.0 milestone Dec 31, 2018
@straight-shoota
Copy link
Member

@bew Could you rebase on master to make sure it's still valid?

@bew bew force-pushed the allow-creating-none-enum-flags-from-value branch from b7fca2b to 8b7f7b5 Compare February 11, 2019 22:27
@straight-shoota straight-shoota merged commit 90dba4d into crystal-lang:master Feb 15, 2019
@bew bew deleted the allow-creating-none-enum-flags-from-value branch February 15, 2019 17:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot create an enum flag instance from value 0
4 participants