How to access the properties of an interface from object inside that interface?
How to access the properties of an interface from object inside that interface?
example :
interface FeatureFlags {
val version: String
object FF {
fun instanceBlock(): Boolean {
return compareVersions(version, "0.19") >= 0
}
}
}
Or I tried this
interface FeatureFlags {
val version: String
fun instanceBlock(): Boolean {
return compareVersions(version, "0.19") >= 0
}
}
interface LemmyApiBase : PictrsAPI, OldRoutes {
val version:...