I think this is a bug: The code compiles fine, but intellij reports this:
Daniel Pitts
12/18/2024, 6:44 PM
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)
}