mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-16 15:53:55 +00:00
Java Uast: Initial implementation
This commit is contained in:
13
plugins/uast-java/testData/Lambda.java
vendored
Normal file
13
plugins/uast-java/testData/Lambda.java
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
class Lambda {
|
||||
void example() {
|
||||
doJob(arg -> arg + arg, "Mary");
|
||||
}
|
||||
|
||||
void doJob(Job job, String arg) {
|
||||
System.out.println(job.doJob(arg));
|
||||
}
|
||||
}
|
||||
|
||||
interface Job {
|
||||
String doJob(String arg);
|
||||
}
|
||||
Reference in New Issue
Block a user