Lukasz Kalnik
12/10/2023, 4:29 PMIterable.maxBy()
method? When I just write it out, it references the nullable deprecated variant:Joffrey
12/10/2023, 4:36 PMJoffrey
12/10/2023, 4:36 PMmaxBy
in the 1.9.21 stdlib. Do you get any deprecation warning in the IDE? Or when running gradle via CLI?Andrei Kovalevsky
12/10/2023, 4:37 PMJoffrey
12/10/2023, 4:39 PMmaxBy
from Kotlin 1.7+ that returns a non nullable resultAndrei Kovalevsky
12/10/2023, 4:40 PMJoffrey
12/10/2023, 4:40 PMAndrei Kovalevsky
12/10/2023, 4:40 PMSam
12/10/2023, 5:29 PMSam
12/10/2023, 5:33 PMAndrei Kovalevsky
12/10/2023, 7:18 PMLukasz Kalnik
12/11/2023, 8:49 AM@Suppress("CONFLICTING_OVERLOADS")
suggest that both the old and new functions are ambiguous? Doesn't that confuse the IDE?Sam
12/11/2023, 8:51 AMLukasz Kalnik
12/11/2023, 8:52 AMSam
12/11/2023, 8:57 AMSam
12/11/2023, 8:59 AM@DeprecatedSinceKotlin
annotation properly?Lukasz Kalnik
12/11/2023, 9:01 AMSam
12/11/2023, 9:04 AM@DeprecatedSinceKotlin
annotation is saying that it should be a warning in 1.4, an error in 1.5 and an unresolved reference in 1.6—even though the function still exists at runtime.
Docs: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-deprecated-since-kotlin/Sam
12/11/2023, 9:05 AMLukasz Kalnik
12/11/2023, 9:29 AMSam
12/11/2023, 9:34 AMLukasz Kalnik
12/11/2023, 9:41 AMNoSuchElementException
.Klitos Kyriacou
12/11/2023, 2:15 PM