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

Type checking considers extension methods but not extension properties

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.3.0-rc-2
    • 2.4.8
    • Static Type Checker
    • None

    Description

      Say an extension class registered via an extension module declares a Player#getBonusPoints() extension method. Then `player.getBonusPoints()` type-checks, but `player.bonusPoints` doesn't.

      Attachments

        Issue Links

          Activity

            People

              shils Shil Sinha
              pniederw Peter Niederwieser
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: