Daniele B
08/13/2020, 5:27 PMvar myVar : String
get() = functionUsingTheVariableName(::field.name)
I would like to do this, but I get:
Unsupported [References to variables aren't supported yet]
any alternative?ephemient
08/13/2020, 6:46 PMfunctionUsingTheVariableName(::myVar.name)
?operator fun <T> ((String) -> T).getValue(thisRef: Any?, property: KProperty<*>): T = invoke(property.name)
val myVar: String by ::functionUsingTheVariableName
Daniele B
08/13/2020, 6:48 PM