Files
kotlin-fork/idea/testData/codeInsight/codeVision/InterfaceImplementations.kt
T
2020-06-05 19:15:34 +02:00

9 lines
381 B
Kotlin
Vendored

// 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
}