mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-17 08:31:29 +00:00
13 lines
358 B
Plaintext
Vendored
13 lines
358 B
Plaintext
Vendored
// PARAM_TYPES: kotlin.Int
|
|
// PARAM_TYPES: kotlin.Int
|
|
// PARAM_DESCRIPTOR: value-parameter a: kotlin.Int defined in A.foo
|
|
// PARAM_DESCRIPTOR: value-parameter b: kotlin.Int defined in A.foo
|
|
class A {
|
|
fun foo(a: Int, b: Int): Int {
|
|
return {
|
|
{ i(a, b) }.invoke()
|
|
}.invoke()
|
|
}
|
|
|
|
private fun i(a: Int, b: Int) = a + b - 1
|
|
} |