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

Add 'new' function support to type alias

    XMLWordPrintable

Details

    • New Feature
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • PUP 4.5.0
    • None
    • None
    • Not Needed
    • missing functionality in not yet released feature

    Description

      It should be possible to call new on a type alias by having the alias delegate to its resolved type.

      ACCEPTANCE_CRITERIA


      puppet apply -e 'type X=String; notice X(42,"%#s")'

      Produces the output

      Notice: Scope(Class[main]): "42"

      Attachments

        Issue Links

          Activity

            People

              john.duarte John Duarte
              henrik.lindberg Henrik Lindberg
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support