Ubadah Jafry
02/21/2025, 2:49 PMProps.View
. Here's my code:
class Props(
override val map: MutableMap<String, JsonElement>,
override val json: Json = Json
) : SerializableTypeSafeProperties, TypedGeoProperties, Props.View {
interface View {
val id: Id.V2?
val title: String?
val distance: Float?
val ascent: Float?
val descent: Float?
val color: String?
val width: Int?
}
override var id by serializable<Id.V2>("uuid")
override var title by string("title")
override var distance by float("distance")
override var ascent by float("ascent")
override var descent by float("descent")
override var color by string("style-color")
override var width by int("style-width")
}
For context, I'm using these definitions:
typealias GeoProperties = Map<String, JsonElement>
interface TypedGeoProperties {
val map: GeoProperties
}
And TypeSafeProperties
just provides default interface implementations for these delegates.
Error message says: "There's a cycle in the inheritance hierarchy for this type [Props.View]"
Any ideas what's causing this?Pablichjenkov
02/21/2025, 3:12 PMUbadah Jafry
02/21/2025, 3:13 PMUbadah Jafry
02/21/2025, 3:13 PMUbadah Jafry
02/21/2025, 3:13 PMPablichjenkov
02/21/2025, 3:14 PMPablichjenkov
02/21/2025, 3:15 PMPablichjenkov
02/21/2025, 3:15 PM