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

Cannot call type() function using postfix notation e.g 1.type()

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: PUP 4.5.2
    • Component/s: None
    • Labels:
      None
    • Template:
    • Acceptance Criteria:
      Hide

      That the outcome of notice(1.type()) is Integer{[1,1], and not a syntax error.

      Show
      That the outcome of notice(1.type()) is Integer{ [1,1] , and not a syntax error.
    • Epic Link:
    • Story Points:
      1
    • Sprint:
      Language 2016-06-01, Language 2016-06-15
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      It was not possible to call the type() function using postfix notation, for example 1.type(), but type(1) did. Now both works.

      Description

      It does not work to call the type function using postfix /method call syntax.

      notice(1.type())
      

      Fails with a syntax error on 'type'.

      It does however work when calling it as a function:

      notice(type(1))
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              henrik.lindberg Henrik Lindberg
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support