mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-13 17:14:09 +07:00
14 lines
260 B
Java
14 lines
260 B
Java
interface Runnable{}
|
|
interface Class<T>{}
|
|
|
|
public class Foo implements Runnable{
|
|
static <T> void foo(Class<T> aClass, T t) { }
|
|
|
|
Class<Foo> getC(){ return new Class<Foo>(){};}
|
|
public void run() {
|
|
}
|
|
|
|
{
|
|
<ref>foo(new Class<Runnable>(){}, this);
|
|
}
|
|
} |