mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 15:53:46 +00:00
16 lines
365 B
Kotlin
16 lines
365 B
Kotlin
class Inline() {
|
|
|
|
inline fun foo1Int(s : (l: Int) -> Int, param: Int) : Int {
|
|
return s(param)
|
|
}
|
|
|
|
inline fun foo1Double(param: Double, s : (l: Double) -> Double) : Double {
|
|
return s(param)
|
|
}
|
|
|
|
inline fun foo2Param(param1: Double, s : (i: Int, l: Double) -> Double, param2: Int) : Double {
|
|
return s(param2, param1)
|
|
}
|
|
}
|
|
|