mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
9 lines
385 B
Kotlin
9 lines
385 B
Kotlin
// MODE: inheritors
|
|
|
|
/*<# block [ 3 Implementations] #>*/
|
|
interface SomeInterface {}
|
|
interface SomeOtherInterface : SomeInterface {} // <== (1): interface extension
|
|
class SomeClass : SomeInterface { // <== (2): interface implementation
|
|
fun acceptsInterface(param: SomeInterface) {}
|
|
fun main() = acceptsInterface(object : SomeInterface {}) // <== (3): anonymous class instance
|
|
} |