framework/tests/all-systems/GenericTest12b.java
raw| 1 | @SuppressWarnings("nullness") // Don't want to depend on @Nullable |
| 2 | class GenericTest12b { |
| 3 | class Cell<T1 extends Object> {} |
| 4 | |
| 5 | class Node<CONTENT extends Object> { |
| 6 | public Node(Cell<CONTENT> userObject) {} |
| 7 | |
| 8 | void nodecall(Cell<CONTENT> userObject) {} |
| 9 | } |
| 10 | |
| 11 | class RootNode extends Node<Void> { |
| 12 | public RootNode() { |
| 13 | super(new Cell<Void>()); |
| 14 | call(new Cell<Void>()); |
| 15 | nodecall(new Cell<Void>()); |
| 16 | } |
| 17 | |
| 18 | void call(Cell<Void> userObject) {} |
| 19 | } |
| 20 | } |