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

A method level generic type is not resolved inside AIC

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • 1.8-beta-1, 2.4.0-beta-3
    • None
    • class generator
    • None

    Description

      The code below fails saying unable to resolve class T, when it should compile fine and have the same semantics as Java in this case.

      class A{
          def <T> void foo() {
              def dummy = new Object() {
                  def bar(T a) { }
              }
          }
      }
      

      Attachments

        Activity

          People

            paulk Paul King
            roshandawrani Roshan Dawrani
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: