cypher121
03/03/2017, 12:11 AMclass Delegate<in R, out T>(private val source: R.() -> T) : ReadOnlyProperty<R, T> {
override fun getValue(thisRef: R, property: KProperty<*>): T {
return thisRef.source()
}
}
val test by Delegate { "test" }
this fails with "failed to infer T". seems like a bug, is it a known one?