[JS IR] Fix findInterfaceImplementation

isOrOverridesSynthesized uses descriptors which does not work with
wrapped descriptors
This commit is contained in:
Svyatoslav Kuzmich
2020-05-29 17:08:25 +03:00
parent 19219c37b6
commit e9e850ad8f
9 changed files with 70 additions and 12 deletions
+35
View File
@@ -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"
}