bcfafc601e
This change allows to revert adding `WITH_STDLIB` directive to tests which happened at `a9343aeb`. Co-authored-by: Alexander Udalov <Alexander.Udalov@jetbrains.com>
23 lines
413 B
Kotlin
Vendored
23 lines
413 B
Kotlin
Vendored
interface IFoo {
|
|
fun foo(): String
|
|
}
|
|
|
|
interface IBar {
|
|
fun bar(): String
|
|
}
|
|
|
|
enum class Test : IFoo, IBar {
|
|
FOO {
|
|
// FOO referenced from inner class constructor with initialized 'this',
|
|
// in delegate initializer
|
|
inner class Inner : IFoo by FOO
|
|
|
|
val z = Inner()
|
|
|
|
override fun foo() = "OK"
|
|
|
|
override fun bar() = z.foo()
|
|
}
|
|
}
|
|
|
|
fun box() = Test.FOO.bar() |