Andrew Gazelka
01/27/2019, 3:02 AMoverride fun <SubsystemStateCondition>getConditionValue(): SubsystemStateCondition {
return state
}
interface Condition {
fun <T> getConditionValue(): T
}Nikky
01/27/2019, 4:06 AMDico
01/27/2019, 4:55 AMPavlo Liapota
01/27/2019, 8:40 AM<T> from function to interface, then your class can implement interface with SubsystemStateCondition type parameter and return type of overridden function will be fixed.