mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-22 14:50:53 +07:00
15 lines
248 B
Java
15 lines
248 B
Java
import java.util.concurrent.Callable;
|
|
class Test {
|
|
|
|
public void test() {
|
|
Foo<String> f = new Foo<>(() -> "this doesn't compile");
|
|
}
|
|
|
|
public class Foo<T> {
|
|
public Foo(Callable<T> supplier) {
|
|
}
|
|
|
|
public Foo(T value) {
|
|
}
|
|
}
|
|
} |