[JS IR] Fix findInterfaceImplementation
isOrOverridesSynthesized uses descriptors which does not work with wrapped descriptors
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
// 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"
|
||||
}
|
||||
Reference in New Issue
Block a user