Use kts file extension instead of kt in tests...

since all "kt" files are now considered - definitely non-scripts
This commit is contained in:
Ilya Chernikov
2018-05-03 10:25:53 +02:00
parent 24e8e7c40d
commit 22439250e2
4 changed files with 5 additions and 5 deletions
+11
View File
@@ -0,0 +1,11 @@
package test
// this script expected parameter num : Int
fun fib(n: Int): Int {
val v = if(n < 2) 1 else fib(n-1) + fib(n-2)
return v
}
val result: Int = fib(num)
12