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

unless with else when then part is empty produces nil result (future parser)

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: PUP 3.7.4
    • Fix Version/s: PUP 3.8.0, PUP 4.1.0
    • Component/s: Language
    • Labels:
      None
    • Template:
    • Story Points:
      1
    • Sprint:
      Language 2015-04-01, Language 2015-04-15
    • Release Notes:
      Bug Fix

      Description

      notice unless false {} else { correct }
      

      should notice 'correct', but notices ''.

      If instead this is evaluated:

      notice unless false { derp } else { correct }
      

      the value 'correct' is noticed.

        Attachments

          Issue Links

            Activity

              jsd-sla-details-panel

                People

                • Assignee:
                  qa qa
                  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: