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

DGM properties not available in interfaces?

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 2.0.1
    • Static compilation
    • None

    Description

      Example:

      class Foo {
          
          @groovy.transform.CompileStatic
          static foo() {
              InputStream input
              println input.text
          }
      }
      

      Produces:

      [Static type checking] - No such property: text for class: java.io.InputStream
       at line: 8, column: 17
      

      Attachments

        Issue Links

          Activity

            People

              melix Cédric Champeau
              graemerocher Graeme Rocher
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: