diff --git a/waynboot-generator/src/main/test/com/test/FoodTest.java b/waynboot-generator/src/main/test/com/test/FoodTest.java new file mode 100644 index 0000000..7868d05 --- /dev/null +++ b/waynboot-generator/src/main/test/com/test/FoodTest.java @@ -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 { + 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 p = new Plate<>(new Apple()); + } +}