I came across an interesting compiler bug today. ...
# getting-started
d
I came across an interesting compiler bug today. The following should be valid but fails.
Copy code
enum class Foo {
    FOO;
    var bound
        get() = 0
        set(value) {}
}

class Bar {
    var foo by Foo.FOO::bound
}

fun main() {
    println(Bar().foo)
}
I've already created a ticket