17 lines
420 B
Plaintext
Vendored
17 lines
420 B
Plaintext
Vendored
default class _Dummy_ {
|
|
default class Lambda {
|
|
default fun example(): void {
|
|
doJob({ arg: String ->
|
|
arg + arg
|
|
}, "Mary")
|
|
}
|
|
|
|
default fun doJob(job: Job, arg: String): void {
|
|
System.out.println(job.doJob(arg))
|
|
}
|
|
|
|
}
|
|
default abstract static interface Job {
|
|
public fun doJob(arg: String): String = EmptyExpression
|
|
}
|
|
} |