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

Use sealed traits for enums #479

Merged
merged 1 commit into from Aug 16, 2018
Merged

Conversation

@mrdziuban
Copy link
Contributor

mrdziuban commented Aug 16, 2018

This has two main benefits:

  • Allows exhaustive pattern matches on enums
  • Allows observation of all members at compile time using knownDirectSubclasses
Copy link
Owner

eed3si9n left a comment

LGTM pending CI

@mrdziuban
Copy link
Contributor Author

mrdziuban commented Aug 16, 2018

Thanks @eed3si9n, it looks like the tests failed because the SOAP service for getting stock quotes was shut down.

@eed3si9n eed3si9n merged commit 3c8f978 into eed3si9n:master Aug 16, 2018
1 check failed
1 check failed
continuous-integration/travis-ci/pr The Travis CI build failed
Details
@mrdziuban mrdziuban deleted the mrdziuban:enum-sealed-trait branch Aug 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.