groovy

usage of generics type parameter in methods

Details

  • Type: Sub-task Sub-task
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 1.1-beta-2
  • Component/s: None
  • Labels:
    None
  • Number of attachments :
    0

Description

example:

class B {
static <T> T foo() {return null}
}

or

class C<T> {
def foo(T t){}
}

Activity

Hide
blackdrag blackdrag added a comment -

done

Show
blackdrag blackdrag added a comment - done

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: