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

future parser should validate class/resource names that are types

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: PUP 3.7.0
    • Component/s: Compiler, Docs
    • Labels:
      None
    • Template:
    • Story Points:
      1
    • Sprint:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Zendesk Support