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

An aliased type should inherit the traits of the type that it is an alias for

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Template:
    • Team:
      Platform Core
    • Story Points:
      1
    • Method Found:
      Manual Test
    • QA Risk Assessment:
      Needs Assessment

      Description

      Some types, like the Enum will allow iteration over the type parameters. E.g. it's legal to write:

      Enum['a', 'b'].each |$tp| { ... }
      

      However, if an alias is declared for this type, then that alias is not iterable:

      type Custom = Enum['a', 'b']
      Custom.each |$tp| { ... } # Error
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                thomas.hallgren Thomas Hallgren
              • Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Zendesk Support