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

Struct with optional values is not assignable from Hash where key is missing

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: PUP 3.7.5
    • Component/s: Compiler
    • Labels:
      None
    • Template:
    • Story Points:
      1
    • Sprint:
      Language 2015-02-18, Language 2015-03-04

      Description

      The specification of the Struct type declares that "Struct supports Optional values - this means that a matching hash may either have undef bound to a key, or that the key is missing.". A hash without a matching key for such an optional value is however not considered assignable.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                thomas.hallgren Thomas Hallgren
                QA Contact:
                Eric Thompson
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Zendesk Support