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

Static type checker reports ambiguous method call on DGM method

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0-beta-3
    • 2.0-rc-1
    • Static Type Checker
    • None

    Description

      The following code produces a static type checking error:

      (0..10).find { int i -> i<5 }
      

      It reports an ambiguous call between two "find" methods from DGM, one defined on Object, the other one defined on Collection.

      Attachments

        Activity

          People

            melix Cédric Champeau
            melix Cédric Champeau
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: