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

Trait, public fields & as-operator

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.3.0-rc-1
    • Component/s: None
    • Labels:
      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

            • Assignee:
              melix C├ędric Champeau
              Reporter:
              mxm-groovy Maxim Medvedev
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: