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

TypeCalculator.generalize() produces bad types for Struct

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Done
    • None
    • PUP 3.8.1, PUP 4.1.0
    • None
    • None
    • 1
    • Language 2015-05-13

    Description

      The TypeCalculator.generalize strips all information about type and represented value (or values) when applied to a String. This behavior becomes problematic when generalizing a Struct type since it means that all information about the keys in that struct is lost and a printout of a generalized Struct becomes nonsensical. The struct:

      Struct[{name => String[1], version => String[1]}]
      

      becomes:

      Struct[{'' => String, '' => String}]
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              thomas.hallgren Thomas Hallgren
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support