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

Make "as" be customisable through the asType(Class) method

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.0-RC-1
    • None
    • None

    Description

      If a type has an asType(Class c) method, we can make foo as SomeType be mapped to foo.asType(SomeType)
      Nice for custome type coercion.

      Attachments

        Activity

          People

            blackdrag Jochen Theodorou
            guillaume Guillaume Sauthier
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: