RosettaCodeData/Task/Constrained-genericity/Java/constrained-genericity-3.java
Ingy döt Net 764da6cbbb CDE
2013-04-10 16:57:12 -07:00

2 lines
132 B
Java

public <T extends Eatable> void foo(T x) { }
// although in this case this is no more useful than just "public void foo(Eatable x)"