Details

    • Steps to Reproduce:
      Hide

      package mvel;
      function Integer englishToInt(String englishNumber)

      { return ["one":1, "two":2, "three":3, "four":4, "five":5].get(englishNumber.toLowerCase()); }
      Show
      package mvel; function Integer englishToInt(String englishNumber) { return ["one":1, "two":2, "three":3, "four":4, "five":5].get(englishNumber.toLowerCase()); }

      Description

      Without dialect "mvel", this DRL function written in MVEL

      package mvel;
      function Integer englishToInt(String englishNumber)

      { return ["one":1, "two":2, "three":3, "four":4, "five":5].get(englishNumber.toLowerCase()); }

      causes this error message - NOTE THE NAME OF THE FUNCTION!

      Error importing : 'mvel.EnglishToInt.englishToInt'
      [ function englishToIntenglishToInt (line:12): Syntax error on tokens, Name expected instead
      ]

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                mfusco Mario Fusco
                Reporter:
                laune Wolfgang Laun
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: