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 source(from) imply source(true) #129

Merged
merged 1 commit into from
Jul 28, 2019

Conversation

tjkirch
Copy link
Collaborator

@tjkirch tjkirch commented Jul 27, 2019

Fixes #124 - based on discussion from #109 about which attributes should be valid together.

This change makes source(from(...)) imply source(true). This means you don't need two source-type attributes on a field that you intend to be a source but can't be named source. (It's still valid to specify source(from(...)) and source(true), just redundant.)

The attributes section of the user's guide is updated with a note on this behavior.


Testing done:

Updated compile-fail results show that we catch more duplicates than we could before, because more fields are recognized as sources.

An updated unit test also shows this behavior in a more positive light. :)

@shepmaster shepmaster added the enhancement New feature or request label Jul 28, 2019
@shepmaster shepmaster merged commit 093892d into shepmaster:master Jul 28, 2019
@shepmaster
Copy link
Owner

Looks wonderful!

@tjkirch tjkirch mentioned this pull request Aug 8, 2019
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

source(from) could imply source(true)
2 participants