Interfaces cannot have any state, so it’s not poss...
# announcements
v
Interfaces cannot have any state, so it’s not possible. We are solving the same problem with interface delegation:
Copy code
interface IConfigActor<T> {
  val configurations : HashMap<String, T>
}

class DefaultConfigActor<T> : IConfigActor<T> {
  override val configurations: HashMap<String, T> = hashMapOf()
}

class IConfigActorImpl<T> : IConfigActor<T> by DefaultConfigActor()