perf(代码生成): 添加测试文件

master
hequan_waynaqua 4 years ago
parent 7013ebe6ed
commit 2056e6025a

@ -0,0 +1,40 @@
package com.test;
public class FoodTest {
class Food {
}
class Fruit extends Food {
}
class Apple extends Fruit {
}
class Origin extends Fruit {
}
class Plate <T>{
private T item;
public Plate(T t) {
item = t;
}
public void set(T t) {
item = t;
}
public T get() {
return item;
}
}
public static void main(String[] args) {
new FoodTest().test();
}
public void test() {
Plate<? extends Fruit> p = new Plate<>(new Apple());
}
}
Loading…
Cancel
Save