Are you sure you even need the type `T` here? ```...
# announcements
p
Are you sure you even need the type
T
here?
Copy code
interface A {
    fun doSomething(): A
}

data class B(val str: String) : A {
    override fun doSomething(): B {
        val c = copy()
        return c
    }
}