mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 00:21:29 +00:00
also remove some tests that are covered in the scripting-compiler tests now. Part of the cleanup to rewrite scripting to the new infrastructure.
15 lines
250 B
Kotlin
Vendored
15 lines
250 B
Kotlin
Vendored
|
|
import org.jetbrains.kotlin.scripting.compiler.test.*
|
|
|
|
// this script expected parameter num : Int
|
|
|
|
fun fib(n: Int): Int {
|
|
val v = fibCombine( { fib(it) }, n)
|
|
println("fib($n)=$v")
|
|
return v
|
|
}
|
|
|
|
println("num: $num")
|
|
val result = fib(num)
|
|
|