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

cannot access superclass' field

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-JSR-5
    • 1.0
    • None
    • None
    • Mustang b82

    Description

      There might be special syntax for that - in which case forgive me since I couldn't find any up-to-date / comprehensive documentations for the language yet.

      Basically the following does not work:

      class Rational {
      final BigInteger numerator
      }

      class Whole extends Rational {
      BigInteger plus(Whole number) {
      numerator.add(number.numerator)
      }
      }

      Attachments

        Activity

          People

            Unassigned Unassigned
            alexlamsl Alex Lam S.L.
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: