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

Trait, public fields & as-operator

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.3.0-rc-1
    • None
    • None

    Description

      IMHO this code should work, now (snapshot from buildserver built on the 14th of April) it doesn't.

      trait A {
          public abc = 4
      }
      
      assert (new Object() as A).pack_A__abc == 4
      

      Attachments

        Activity

          People

            melix Cédric Champeau
            mxm-groovy Maxim Medvedev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: