Files
kotlin/idea/testData/refactoring/extractFunction/defaultContainer/localClass.kt

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()
}
}