apatrida
10/13/2015, 5:42 PMpublic interface ImmutableUri {
fun toURI(): URI
override public fun toString(): String {
return toURI().toString()
}
}
(that's a short version)
you are no longer allowed. " An interface may not implement a method of 'kotlin.Any'"
but since it's Any, everything has toString() already, and I just have to repeat the implementation in each class or have something to delegate to in the interface.