e9e850ad8f
isOrOverridesSynthesized uses descriptors which does not work with wrapped descriptors
35 lines
507 B
Kotlin
Vendored
35 lines
507 B
Kotlin
Vendored
// MODULE: lib
|
|
// FILE: lib.kt
|
|
|
|
package lib
|
|
|
|
interface Stoppable {
|
|
fun isStopped(): Boolean
|
|
}
|
|
|
|
interface EventRo : Stoppable
|
|
|
|
interface Event : Stoppable {
|
|
override fun isStopped(): Boolean {
|
|
return true
|
|
}
|
|
}
|
|
|
|
abstract class EventBase : Event
|
|
|
|
interface MouseEventRo : EventRo
|
|
|
|
open class MouseEvent : EventBase(), MouseEventRo
|
|
|
|
// MODULE: main(lib)
|
|
// FILE: main.kt
|
|
|
|
package main
|
|
|
|
fun box(): String {
|
|
if (lib.MouseEvent().isStopped()) {
|
|
return "OK"
|
|
}
|
|
|
|
return "Fail"
|
|
} |