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

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

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Done
    • PUP 3.7.4
    • PUP 3.8.0, PUP 4.1.0
    • Language
    • None
    • 1
    • Language 2015-04-01, Language 2015-04-15
    • 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

            People

              qa qa
              henrik.lindberg Henrik Lindberg
              Kurt Wall Kurt Wall
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support