mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 08:31:30 +00:00
12 lines
356 B
Kotlin
12 lines
356 B
Kotlin
fun f(
|
|
<!VAL_OR_VAR_ON_FUN_PARAMETER!>val<!> a: Int,
|
|
<!VAL_OR_VAR_ON_FUN_PARAMETER!>var<!> b: Int,
|
|
c: Int,
|
|
vararg <!VAL_OR_VAR_ON_FUN_PARAMETER!>var<!> d: Int,
|
|
vararg <!VAL_OR_VAR_ON_FUN_PARAMETER!>val<!> e: Int,
|
|
vararg f: Int
|
|
) {
|
|
|
|
|
|
a + b + c + d[0] + e[0] + f[0] // to avoid 'unused parameter'
|
|
} |