Marcin Wisniowski
09/29/2025, 7:09 PMoverride keyword to a method that isn't actually overriding anything not a compile error? In IntelliJ, it results in a red error underline and an "overrides nothing" message, but it compiles fine. I would have expected it to be a compile error, but it isn't.dmitriy.novozhilov
09/29/2025, 7:51 PMclass Some {
// reports "'foo' overrides nothing."
override fun foo(): String = "OK"
}
fun main() {
println(Some().foo())
}
https://pl.kotl.in/kPz_Udohl
If you have an example where it isn't, please report it to youtrack, it's a bug.Marcin Wisniowski
09/29/2025, 9:00 PM