(Solved) Kotlin "Identity equality for arguments of types Int and Int is deprecated"
(Edit) I figured it out. It was a wrong-operator typo in line 51. I corrected !== (not referencing the same object) to != (not having the same value). The reason it compiled with !== is because, "For values represented by primitive types at runtime (for example, Int), the === equality check is equivalent to the == check." -- https://kotlinlang.org/docs/equality.html#referential-equality Somebody at Jetbrains must have realized that giving two operators the same meaning was not best practice and deprecated it. (Old) My code compiles and runs fine, but the compiler added that interesting notice at the end of the program output. Unfortunately, Sololearn disabled line numbers from the compiler reports. Maybe someone with a separate IDE can see the line number. I suspect it's 41, 51, or both. Also, why would that be deprecated? Also, what are the recommended alternatives? A search on kotlinlang.org for the exact warning text produced zero results. https://code.sololearn.com/cb0vSnkjE02i/?ref=app