mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-10 18:09:38 +07:00
testdata for IDEA-134277
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
import java.util.concurrent.Future;
|
||||
|
||||
class TypeInferenceBug
|
||||
{
|
||||
public interface Callback<V> {
|
||||
void done(V value);
|
||||
}
|
||||
|
||||
public static <V> void addCallback(Future<V> future, Callback<? super V> callback) {}
|
||||
|
||||
public static <T> Callback<T> createCallback() {
|
||||
return value -> {};
|
||||
}
|
||||
|
||||
public static void bind(Future<?> future) {
|
||||
addCallback(future, createCallback());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user