abstract class A<T> {
abstract fun broken(vararg values: T): T
}
// Error: Class 'B' is not abstract and does not implement abstract base class member public abstract fun broken(vararg values: Int): Int defined in A
// Error: 'broken' overrides nothing
class B : A<Int>() {
override fun broken(vararg values: Int): Int {
return 5
}
}
The same code works fine if the subclass is with a "normal" object and not a primitive type.
Actually the IntelliJ IDE also thinks it should work, at least it generates the code for it but the compiler then complains about it.
Tested with kotlin 1.3.31