pakoito
11/21/2017, 4:49 PMpakoito
11/21/2017, 4:49 PMpakoito
11/21/2017, 4:49 PMpakoito
11/21/2017, 4:50 PMpakoito
11/21/2017, 4:51 PMkarelpeeters
11/21/2017, 4:51 PMpakoito
11/21/2017, 4:52 PMpakoito
11/21/2017, 4:52 PMpakoito
11/21/2017, 4:53 PMpakoito
11/21/2017, 4:53 PMkarelpeeters
11/21/2017, 4:56 PMtailrec
on a function that doesn't actually have any tail recursion is always a mistake, so it deserves a warning. Consider this code though:
fun foo(list: List<Int>) {
list.forEach {
if(it == 0) return
println(it)
}
println("done")
}
The return
here isn't wrong, so it shouldn't get a warning. How do you separate them?pakoito
11/21/2017, 5:02 PMCzar
11/21/2017, 5:06 PMchristophsturm
11/23/2017, 2:11 PMyole
11/23/2017, 3:17 PMchristophsturm
11/24/2017, 10:58 AMchristophsturm
11/24/2017, 12:33 PMchristophsturm
11/24/2017, 12:34 PMchristophsturm
11/24/2017, 12:35 PMyole
11/24/2017, 1:12 PMchansek
11/25/2017, 5:12 AMchansek
11/25/2017, 5:12 AMjkbbwr
11/25/2017, 3:47 PMjakob@devtank~> java -version
java version "9.0.1"
Java(TM) SE Runtime Environment (build 9.0.1+11)
Java HotSpot(TM) 64-Bit Server VM (build 9.0.1+11, mixed mode)
jakob@devtank~>
keturn
11/25/2017, 6:19 PMOutdated Kotlin Runtime
Your version of Kotlin runtime in 'Gradle: org.jetbrains.kotlinkotlin stdlib1.1.51' library is 1.1.51, while plugin version is 1.2.0-rc-39-IJ2017.3-1.
Runtime library should be updated to avoid compatibility problems.
keturn
11/25/2017, 6:21 PMketurn
11/25/2017, 6:21 PM-rc-39
to match exactly?keturn
11/25/2017, 6:22 PMCould not find org.jetbrains.kotlinkotlin gradle plugin1.2.0-rc-39.
keturn
11/25/2017, 6:39 PMketurn
11/25/2017, 6:46 PMwineluis
11/26/2017, 6:31 PM