groovy
  1. groovy
  2. GROOVY-4360

A method level generic type is not resolved inside AIC

    Details

    • Type: Bug Bug
    • Status: Open Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.8-beta-1
    • Fix Version/s: None
    • Component/s: class generator
    • Labels:
      None
    • Number of attachments :
      0

      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) { }
              }
          }
      }
      

        Activity

        Roshan Dawrani made changes -
        Field Original Value New Value
        Component/s class generator [ 10443 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Roshan Dawrani
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: