Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-2886

future parser should validate class/resource names that are types

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • PUP 3.7.0
    • Compiler, Docs
    • None
    • 1
    • 2014-07-23

    Description

      The validator should issue an error if a type name is used as the name of a class or define.

      define integer { }
      class data {}
      

      The names should be allowed when used in some context e.g. MyVeryOwn::Integer - this, although most names are computer science like, the type Data may be something that people want to use.

      There is no deprecation, and if not validated, references to those classes/defines will not work as expected, with strange effects, or errors elsewhere.

      Attachments

        Issue Links

          Activity

            People

              andy Andrew Parker
              henrik.lindberg Henrik Lindberg
              Kurt Wall Kurt Wall
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support