Rem vs. mod?


#1

I got this warning when compiling.

'mod(Int): Int' is deprecated. Use rem(other) instead

Now, the message is simple enough but it leaves me wondering what sort of change it wants. As far as I can tell there is no `rem` method or operator.

#2

There is one now. http://kotlinlang.org/docs/reference/whatsnew11.html#rem-operator


#3

Yes, I have seen that.

It doesn’t seem to be defined for the Int type.


#4

Which Kotlin runtime version are you using? There’s an issue causing this message to be shown incorrectly if you’re using the runtime of version 1.0.x in the project: https://youtrack.jetbrains.com/issue/KT-16372


#5

I’m using the version bundled with the IntelliJ plugin.