Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/advHighlighting8/LambdaExpressions.java
2015-07-18 23:13:56 +03:00

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"); };
}
}