fr
fr

Question from the Kotlin test

In Kotlin, the infix function `add` can be used with two integers, but not with a float and an integer.

Medium

Considering this code :

infix fun Int.add(x: Int): Int = this + x

Which of the following statements is/are incorrect?

Author: W3D TeamStatus: PublishedQuestion passed 639 times
Edit
1
Community Evaluations
developer avatar
Guillaume
01/02/2025
Mettre "invalide" en gras ?