MutableList.indexOf() is not working correctly in Kotlin scratch file

Try to run this code in Kotlin scratch.kts file:

val mutableList = mutableListOf<Int>() mutableList.add(1) mutableList.add(2) mutableList.add(3) val index = mutableList.indexOf(2) println(index) 

It will print -1. If you run it in regular Kotlin file you will get 1

Where can I report this bug to JetBrains?

submitted by /u/Ram_Fold
[link] [comments]