framework/tests/all-systems/TypeVarPrimitives.java
raw| 1 | // Annotated versions in |
| 2 | // checker/tests/nullness/TypeVarPrimitivesNullness.java and |
| 3 | // checker/tests/interning/TypeVarPrimitivesInterning.java |
| 4 | public class TypeVarPrimitives { |
| 5 | <T extends Long> void method(T tLong) { |
| 6 | long l = tLong; |
| 7 | } |
| 8 | |
| 9 | <T extends Long & Cloneable> void methodIntersection(T tLong) { |
| 10 | long l = tLong; |
| 11 | } |
| 12 | } |