olegstepanov
03/10/2019, 1:53 PMval String.prop
get() = object : Supplier<Int> {
override fun get(): Int = this@prop.toInt()
}
even though completion actually suggests this@prop?Shawn
03/10/2019, 1:57 PMobject
?Supplier { toInt() }
might work for youolegstepanov
03/10/2019, 2:02 PMShawn
03/10/2019, 2:03 PMolegstepanov
03/10/2019, 2:08 PM