Tomasz Krakowiak
04/22/2021, 9:03 AMpublic value class SetValue<Value>(public val value : Value)
"Inline class cannot have value parameter of type 'Value'"
Thread in Slack ConversationTomasz Krakowiak
04/22/2021, 9:05 AMRob Elliot
04/22/2021, 9:08 AMValue
a generic type?Tomasz Krakowiak
04/22/2021, 9:12 AMProperty<Value>
store, that is itself generic.Tomasz Krakowiak
04/22/2021, 9:14 AMpublic interface Store<out State, in Mutation> {
public fun <Value> query(query : Query<State, Value>) : Value
public fun apply(mutation : Mutation)
// ...
}
.
public class PropertyStore<Value> : Store<Value, SetValue<Value>>
Roukanken
04/22/2021, 9:16 AMList<Value>
it works 🤔Roukanken
04/22/2021, 9:20 AM