mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-23 07:50:55 +07:00
14 lines
262 B
Java
14 lines
262 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() {
|
|
}
|
|
|
|
{
|
|
<caret>foo(new Class<Runnable>(){}, this);
|
|
}
|
|
} |