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

Make enums and singletons be (flat) contracts by default #514

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

eutro
Copy link
Contributor

@eutro eutro commented Oct 10, 2021

This PR adds default prop:flat-contract implementations to singleton and enum types, allowing singleton instances and enum constants to be used as contracts.

Implements #426.

@eutro eutro changed the title Add prop:flat-contract-s to singletons and enums Make enums and singletons be (flat) contracts by default Oct 10, 2021
@zyrolasting
Copy link

zyrolasting commented Oct 26, 2021

This seem easier to test. Are tests expected with PRs, or are they introduced in some other process?

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

Successfully merging this pull request may close these issues.

2 participants