Hi Can anyone explain why this won't compile: ``` ...
# announcements
o
Hi Can anyone explain why this won't compile:
Copy code
val String.prop
    get() = object : Supplier<Int> {
        override fun get(): Int = this@prop.toInt()
    }
even though completion actually suggests this@prop?
s
This may be a plugin error, if you can replicate it then it may be worth filing a youtrack
in any case, do you strictly need the
object
?
just
Supplier { toInt() }
might work for you
o
@Shawn I actually have a more complex interface in the real code, just wanted to figure out if that's a bug or not
s
👍 gotcha, just checking
o
@Shawn thanks for the reply, looks like a bug indeed
👍 1