ee860fdde5
#KT-8952 Fixed
41 lines
743 B
Kotlin
Vendored
41 lines
743 B
Kotlin
Vendored
package demo
|
|
|
|
interface WindowListener {
|
|
public fun windowClosing()
|
|
}
|
|
|
|
interface EmptyWindowListener
|
|
open class EmptyWindowAdapter
|
|
|
|
open class WindowAdapter : WindowListener {
|
|
override fun windowClosing() {
|
|
}
|
|
}
|
|
|
|
open class Frame {
|
|
public fun addWindowListener(listener: WindowListener) {
|
|
}
|
|
}
|
|
|
|
public class Client : Frame() {
|
|
init {
|
|
val a = object : WindowAdapter() {
|
|
override fun windowClosing() {
|
|
}
|
|
}
|
|
|
|
addWindowListener(a)
|
|
|
|
addWindowListener(object : WindowAdapter() {
|
|
override fun windowClosing() {
|
|
}
|
|
})
|
|
|
|
val b = object : EmptyWindowListener {
|
|
|
|
}
|
|
val c = object : EmptyWindowAdapter() {
|
|
|
|
}
|
|
}
|
|
} |