Move compiler scripting tests to scripting plugin, remove unused funs
also remove some tests that are covered in the scripting-compiler tests now. Part of the cleanup to rewrite scripting to the new infrastructure.
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
package kotlin.scripting.fibonacci
|
||||
// this script expected parameter num : Int
|
||||
|
||||
fun fib(n: Int): Int {
|
||||
val v = if(n < 2) 1 else fib(n-1) + fib(n-2)
|
||||
println("fib($n)=$v")
|
||||
return v
|
||||
}
|
||||
|
||||
println("num: $num")
|
||||
val result = fib(num)
|
||||
Reference in New Issue
Block a user