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