Closed cal101 closed 7 years ago
In m() the AMixin value for T is not propagated.
` import java.util.List;
public class TypedMethod { public interface Mixin { }
public class AMixin implements Mixin { public List getList() { return null; } }
public T mixin(Class<? extends T> mixin) { return null; }
public void m() { mixin(AMixin.class).getList().get(0); } }`
In m() the AMixin value for T is not propagated.
` import java.util.List;
public class TypedMethod { public interface Mixin {
}
public class AMixin implements Mixin {
public List getList() {
return null;
}
}
public T mixin(Class<? extends T> mixin) {
return null;
}
public void m() { mixin(AMixin.class).getList().get(0); } }`