I think this is a bug: The code compiles fine, but...
# intellij
d
I think this is a bug: The code compiles fine, but intellij reports this:
Reproducer:
Copy code
data object Broken {
    fun foo(value: Int): Unit = TODO()
    fun foo(value: Int?): Unit = TODO()
    fun foo(value: Long?): Unit = TODO()
}

fun main() {
    Broken.foo(1)
}
Restarting in K2 mode, t does not error.