Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-337

closure not using its parameter

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-beta-4
    • 1.0-beta-5
    • class generator
    • None

    Description

      class Foo {
      c =

      {x | println x}

      x = 100
      static void main(args)

      { foo = new Foo() foo.c.call(1) }

      }

      prints 100 not 1

      Attachments

        Activity

          People

            Unassigned Unassigned
            tug John Wilson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: