https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
a

Ahmed na

10/09/2023, 6:55 AM
hi after upgrading to kotlin 1.9.10 , what is the new syntax to solve this warnning ()?
r

Robert Jaros

10/09/2023, 7:07 AM
Copy code
testTask(Action {
    // ...
})
a

Ahmed na

10/09/2023, 7:22 AM
Copy code
testTask(Action{
  useMocha()
})
@Robert Jaros like so ?
r

Robert Jaros

10/09/2023, 7:39 AM
yes
1
e

Edoardo Luppi

10/09/2023, 9:30 AM
Bump Gradle to 8.3 and your original code will be fine IIRC.
h

hfhbd

10/09/2023, 10:07 AM
You can safely ignore this warning in your gradle.build file. After removing this function, Gradle will use the action overload automatically. The warning only exists for plugin authors.
👍 2
3 Views