mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-14 00:21:34 +00:00
11 lines
236 B
Kotlin
Vendored
11 lines
236 B
Kotlin
Vendored
class A {
|
|
fun foo(a: Int, b: Int): Int {
|
|
class L: Function0<Int> {
|
|
override fun invoke(): Int {
|
|
return <selection>a + b - 1</selection>
|
|
}
|
|
}
|
|
|
|
return L().invoke()
|
|
}
|
|
} |