Is there a way to have a static (or companion) fun...
# announcements
j
Is there a way to have a static (or companion) function defined as part of an interface? This doesn’t work. It compiles but completely ignores the
companion object
as part of the interface function requirements:
Copy code
interface State<T: Event> {
    companion object fun initialState(): State<T>
}