summaryrefslogtreecommitdiff
path: root/plugins/kotlin/idea/tests/testData/refactoring/extractFunction/initializers/classes/classInitializerWithLambda.kt.after
blob: 08d55c39f94b5ceedba4eaa2b5be28113dd60533 (plain)
1
2
3
4
5
6
7
8
9
// PARAM_TYPES: kotlin.Int
// PARAM_DESCRIPTOR: value-parameter b: kotlin.Int defined in A.`<init>`
class A(val a: Int, b: Int) {
    init {
        println({ i(b) - 1 }.invoke())
    }

    private fun i(b: Int) = a + b
}