mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-10 01:09:46 +07:00
23 lines
365 B
Java
23 lines
365 B
Java
import java.util.*;
|
|
|
|
class C {
|
|
interface Simplest {
|
|
void m();
|
|
}
|
|
void use(Simplest s) { }
|
|
|
|
interface IntParser {
|
|
int parse(String s);
|
|
}
|
|
|
|
void test() {
|
|
Simplest simplest = () -> { };
|
|
use(() -> { });
|
|
|
|
IntParser intParser = (String s) -> Integer.parseInt(s);
|
|
}
|
|
|
|
Runnable foo() {
|
|
return () -> { System.out.println("foo"); };
|
|
}
|
|
} |