https://kotlinlang.org logo
Title
h

holgerbrandl

03/30/2023, 6:37 AM
Hi there, do you know if there's an intention/quickfix to highlight if i provide an argument in a function call that is already the default value
fun foo(bar:Int = 3) = println(bar)

foo(3) // <- highlight that
Clearly, the warning should be argument/position specific, because typically there are many arguments.
a

Alexey Belkov [JB]

03/30/2023, 7:05 AM
h

holgerbrandl

03/30/2023, 7:50 AM
So cool, thanks @Alexey Belkov [JB] can't wait to start using the new release.
Why wasn't kotlin mentioned in the release log of 2023.1? Imho that's a cool new feature (not sure why it's not enabled by default). I'm loving it. https://www.jetbrains.com/idea/whatsnew/