Tomasz Krakowiak
04/19/2021, 10:38 AMpublic value class SetValue<Value>(public val value : Value)
"Inline class cannot have value parameter of type 'Value'"Youssef Shoaib [MOD]
04/19/2021, 8:55 PMAny?
and then make a factory function i.e. like this:
@JvmInline public value class SetValue<Value> internal constructor(private val _value : Any?) {
public val value: Value get() = _value as Value
}
public fun <Value> SetValue(value: Value) = SetValue<Value>(value)