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

(PUP-2886) Add validation for reserved type names #2842

Merged
merged 1 commit into from Jul 16, 2014

Conversation

hlindberg
Copy link
Contributor

Before this it was possible to name classes and defines with
words that are reserved by the type system (e.g. 'integer'), while
the name is not a type (Integer is a type, but integer is not), the
definitions will automatically create a resource type named with
an upper case initial letter, and will thus be difficult to reference.

For that reason it is better to error on these names statically.

Before this it was possible to name classes and defines with
words that are reserved by the type system (e.g. 'integer'), while
the name is not a type (Integer is a type, but integer is not), the
definitions will automatically create a resource type named with
an upper case initial letter, and will thus be difficult to reference.

For that reason it is better to error on these names statically.
@puppetcla
Copy link

CLA signed by all contributors.

@hlindberg
Copy link
Contributor Author

Travis Ruby 1.8.7 took forever and died... rerunning

jpartlow added a commit that referenced this pull request Jul 16, 2014
@jpartlow jpartlow merged commit c31da16 into puppetlabs:master Jul 16, 2014
@jpartlow jpartlow deleted the PUP-2886_reserved-type-names branch July 16, 2014 00:10
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.

None yet

3 participants