Drop deprecated KotlinPaths.getRuntimePath, use getStdlibPath instead

This commit is contained in:
Alexander Udalov
2017-07-27 15:59:16 +03:00
parent b988582531
commit 8b149db0ec
10 changed files with 21 additions and 40 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
// this script expected parameter num : Int
@file:DependsOn("@{runtime}")
@file:DependsOn("@{kotlin-stdlib}")
fun fib(n: Int): Int {
val v = if(n < 2) 1 else fib(n-1) + fib(n-2)
+1 -1
View File
@@ -1,7 +1,7 @@
// this script expected parameter num : Int
@file:DependsOnTwo(path2 = "@{runtime}")
@file:DependsOnTwo(path2 = "@{kotlin-stdlib}")
fun fib(n: Int): Int {
val v = if(n < 2) 1 else fib(n-1) + fib(n-2)
+2 -2
View File
@@ -1,4 +1,4 @@
@file:DependsOn("@{runtime}")
@file:DependsOn("@{kotlin-stdlib}")
fun main() {
error("my error")
@@ -8,4 +8,4 @@ fun a() {
main()
}
a()
a()